TailwindLiveComponents.Toggle (tailwind_live_components v0.2.8) View Source
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
form- The form identifierfield- The field namelabel- The text for the generated<label>elementvalue- The current value for the inputdetail- Optional detail shown below the inputerror- Optional error messagetheme- Optional theme to use for Tailwind classes