|
id
|
:string
|
|
|
|
|
Required
form
*
|
:any
|
The form around the input group.
|
|
|
|
field
|
:atom
|
|
|
|
|
name
|
:string
|
|
|
|
|
label
|
:string
|
|
|
|
|
toggle_label
|
:string
|
|
|
|
|
toggle_label_on
|
:string
|
Inline toggle label, only displayed when value is true
|
|
|
|
toggle_label_off
|
:string
|
Inline toggle label, only displayed when value is false
|
|
|
|
style
|
:atom
|
|
:default
|
|
|
hint
|
:string
|
An hint to display below the input
|
|
|
|
disabled
|
:boolean
|
Set to true to disable the input.
|
false
|
|
|
readonly
|
:boolean
|
Set to true to set the input as readonly.
|
false
|
|
|
value
|
:any
|
The toggle state (boolean or string)
|
|
|
|
group_class
|
:string
|
|
|
|
|
hint_class
|
:string
|
|
|
|
|
rest
|
:global
|
Additional HTML attributes (phx-, class, data-, etc.)
|
|
|