Toggle

Toggle component, A two-state button that can be either on or off.

Read more Read less

Example:

<.toggle value="true" size="sm" variant="outline">Bold</.toggle>
Attribute Type Documentation Default Value
id :any
name :any
field %FormField{} a form field struct retrieved from the form, for example: @form[:email]
value :boolean false
default-value :any false
disabled :boolean false
variant :string "default"
size :string "default"
class :string
rest :global
Required inner_block * :slot
B