Toggle

Attribute Type Documentation Default Value
label :string

The label of the toggle.

description :string

An optional description.

checked :boolean

Whether the toggle is checked.

false
disabled :boolean

Whether the toggle is disabled.

false
id :string

The id of the toggle.

name :string

The name of the toggle.

field %FormField{}

A Phoenix form field.

tabindex :integer

Tabindex to add to the toggle control

rest :global

Additional attributes