Time Input

:
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

Additional CSS classes

name :string

Form name attribute

value :string

Time value (HH:MM or HH:MM:SS)

field %FormField{}

a form field struct retrieved from the form

disabled :boolean

Whether the input is disabled

false
size :string

Size variant

color :string

Color variant

variant :string

Style variant

error :boolean

Error state

false
errors :list

list of error messages to display

[]
helper :string

helper text displayed below the component

show_seconds :boolean

Show seconds segment

false
show_period :boolean

Show AM/PM toggle

false
label :string

Accessible label for the time input group

"Time input"
am_label :string

Label for the AM period button (i18n)

"AM"
pm_label :string

Label for the PM period button (i18n)

"PM"
hours_label :string

Accessible label for the hours segment (i18n)

"Hours"
minutes_label :string

Accessible label for the minutes segment (i18n)

"Minutes"
seconds_label :string

Accessible label for the seconds segment (i18n)

"Seconds"
rest :global