PhoenixKitWeb.Components.Core.Checkbox (phoenix_kit v1.5.1)
View SourceProvides a default checkbox UI component.
Summary
Functions
Renders a checkbox.
Functions
Renders a checkbox.
Attributes
field(Phoenix.HTML.FormField)id(:any) - Defaults tonil.name(:any)label(:string) - Defaults tonil.errors(:list) - Defaults to[].checked(:boolean) - Defaults tofalse.- Global attributes are accepted. Supports all globals plus:
["readonly", "required"].
Slots
inner_block