Noora.Checkbox
(noora v0.3.2)
An input checkbox.
Example
<.checkbox label="I agree to the terms" />
Functions
Attributes
label
(:string
) (required) - The label of the checkbox.description
(:string
) - An optional description. Defaults to nil
.indeterminate
(:boolean
) - Whether the checkbox is indeterminate. Defaults to false
.disabled
(:boolean
) - Whether the checkbox is disabled. Defaults to false
.id
(:string
) - The id of the checkbox. Defaults to nil
.field
(Phoenix.HTML.FormField
) - A Phoenix form field. Defaults to nil
.multiple
(:boolean
) - Whether the checkbox is part of a multiple checkbox group. Defaults to false
.