import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = ['star', 'input', 'error'] static values = { rating: { type: Number, default: 0 } } connect() { this.#fill(this.ratingValue) } // Bound to the form's submit event (this controller sits on the