Стимул -мишень

<div data-controller="search">
  <div data-search-target="results"></div>
</div>
// controllers/search_controller.js
import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = [ "query", "errorMessage", "results" ]
  // …
}
cadot.eu