|
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
|
|
4
|
|
|
size
|
:string
|
|
|
|
|
color
|
:string
|
|
|
|
|
variant
|
:string
|
visual style: outlined (default) or filled
|
|
|
|
shape
|
:string
|
field shape: square (default) or circle
|
|
|
|
compact
|
:boolean
|
reduce spacing between fields
|
false
|
|
|
dots
|
:boolean
|
display input as dots style
|
false
|
|
|
visible
|
:boolean
|
show entered values (false masks as dots)
|
true
|
|
|
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)
|
"PIN input, {length} digits"
|
|
|
digit_label
|
:string
|
Accessible label template for each input field. Use {index} and {length} (i18n)
|
"PIN digit {index} of {length}"
|
|
|
rest
|
:global
|
|
|
|