Noora.Toggle
(noora v0.76.0)
Copy Markdown
A toggle switch input.
Example
<.toggle label="Enable notifications" />
<.toggle />
Summary
Functions
Attributes
label(:string) - The label of the toggle. Defaults tonil.description(:string) - An optional description. Defaults tonil.checked(:boolean) - Whether the toggle is checked. Defaults tofalse.disabled(:boolean) - Whether the toggle is disabled. Defaults tofalse.id(:string) - The id of the toggle. Defaults tonil.name(:string) - The name of the toggle. Defaults tonil.field(Phoenix.HTML.FormField) - A Phoenix form field. Defaults tonil.tabindex(:integer) - Tabindex to add to the toggle control. Defaults tonil.- Global attributes are accepted. Additional attributes.