Toggle

Attribute Type Documentation Default Value
field %FormField{}

a form field struct

id :any
checked :boolean false
name :string
label :string
aria_label :string
description :string
errors :list []
class :any
variant :string

The colour when on, daisyUI's toggle-*. Emitted as data-variant.

size :string

daisyUI's toggle-xs … toggle-xl; no size is md. Emitted as data-size.

rest :global