|
id
|
:any
|
|
|
|
|
class
|
:any
|
|
|
|
|
name
|
:string
|
|
|
|
|
value
|
:any
|
pre-fill value (string split across fields)
|
|
|
|
field
|
%FormField{}
|
a form field struct retrieved from the form
|
|
|
|
length
|
:integer
|
|
6
|
|
|
size
|
:string
|
|
|
|
|
color
|
:string
|
|
|
|
|
variant
|
:string
|
visual style: outlined (default), filled, or underline
|
|
|
|
gap
|
:string
|
|
|
|
|
masked
|
:boolean
|
mask input as password dots
|
false
|
|
|
disabled
|
:boolean
|
|
false
|
|
|
error
|
:boolean
|
|
false
|
|
|
errors
|
:list
|
list of error messages to display
|
[]
|
|
|
success
|
:boolean
|
|
false
|
|
|
label
|
:string
|
label text above the input
|
|
|
|
label_class
|
:any
|
additional CSS classes for the label
|
|
|
|
helper
|
:string
|
helper text below the input
|
|
|
|
error_message
|
:string
|
error message below the input
|
|
|
|
group_label
|
:string
|
Accessible fallback label when no label attr is set. Use {length} for the digit count (i18n)
|
"Verification code, {length} digits"
|
|
|
digit_label
|
:string
|
Accessible label template for each input field. Use {index} and {length} (i18n)
|
"Digit {index} of {length}"
|
|
|
rest
|
:global
|
|
|
|