TailwindLiveComponents.Toggle (tailwind_live_components v0.2.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 identifier
  • field - The field name
  • label - The text for the generated <label> element
  • value - The current value for the input
  • detail - Optional detail shown below the input
  • error - Optional error message
  • theme - Optional theme to use for Tailwind classes