BetaPublic beta — Read the release notes
Documentation

Time Input

Segmented time entry with hour, minute, second fields and AM/PM toggle.

Package
@solidiom/time-input
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

Rootcomponent

                        Root(props: TimeInputRootProps): Element
                      

Props

class?
string
defaultValue?
TimeInputValue — Default time value (uncontrolled).
disabled?
boolean — Whether the input is disabled.
hourCycle?
HourCycle — Hour cycle: "12" for AM/PM, "24" for 24-hour.
id?
string — Element id.
invalid?
boolean — Whether the field is invalid.
locale?
string — Locale for formatting.
max?
TimeInputValue — Maximum allowed time.
min?
TimeInputValue — Minimum allowed time.
name?
string — Form field name.
onValueChange?
(value: { … }) => void — Called when the time value changes.
readOnly?
boolean — Whether the input is read-only.
required?
boolean — Whether the field is required.
showSeconds?
boolean — Whether to show the seconds segment.
style?
string | CSSProperties
value?
TimeInputValue — Controlled time value.

children: Element

View source

Segmentcomponent

                        Segment(props: TimeInputSegmentProps): Element
                      

Props

class?
string
style?
string | CSSProperties
type
"hour" | "minute" | "second" | "period" — Segment type: "hour", "minute", "second", or "period".

View source

Separatorcomponent

                        Separator(props: TimeInputSeparatorProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

TimeInputRootPropsinterface

Props

class?
string
defaultValue?
TimeInputValue — Default time value (uncontrolled).
disabled?
boolean — Whether the input is disabled.
hourCycle?
HourCycle — Hour cycle: "12" for AM/PM, "24" for 24-hour.
id?
string — Element id.
invalid?
boolean — Whether the field is invalid.
locale?
string — Locale for formatting.
max?
TimeInputValue — Maximum allowed time.
min?
TimeInputValue — Minimum allowed time.
name?
string — Form field name.
onValueChange?
(value: { … }) => void — Called when the time value changes.
readOnly?
boolean — Whether the input is read-only.
required?
boolean — Whether the field is required.
showSeconds?
boolean — Whether to show the seconds segment.
style?
string | CSSProperties
value?
TimeInputValue — Controlled time value.

children: Element

View source

TimeInputSegmentPropsinterface

Props

class?
string
style?
string | CSSProperties
type
"hour" | "minute" | "second" | "period" — Segment type: "hour", "minute", "second", or "period".

View source

TimeInputSeparatorPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

TimeInputValueinterface

Props

hour
number
minute
number
second?
number

View source