TailwindLiveComponents.Toggle (tailwind_live_components v0.1.1) 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>elementdetail- Optional detail shown below the inputerror- Optional error messagetheme- Optional theme to use for Tailwind classes