View Source TailwindLiveComponents.Toggle (tailwind_live_components v0.6.3)
Link to this section Summary
Functions
Renders the toggle
Link to this section Functions
Renders the toggle
<.toggle form={:basket} field={:fruit} label="Fruit" />
options
Options
form- The form identifierfield- The field namelabel- The text for the generated<label>elementrequired- Optional flag idicating field is requiredvalue- The current value for the inputdetail- Optional detail shown below the inputerror- Optional error messagetheme- Optional theme to use for Tailwind classes