Checkbox

Attribute Type Documentation Default Value
Required label * :string

The label of the checkbox.

description :string

An optional description.

indeterminate :boolean

Whether the checkbox is indeterminate.

false
disabled :boolean

Whether the checkbox is disabled.

false
id :string

The id of the checkbox.

name :string

The name of the checkbox.

value :any

The value used to derive the checked state.

checked :boolean

Whether the checkbox is checked.

field %FormField{}

A Phoenix form field.

tabindex :integer

Tabindex to add to the checkbox control

multiple :boolean

Whether the checkbox is part of a multiple checkbox group.

false
rest :global

Additional attributes