BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Time Input

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

Paquete
@solidiom/time-input
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

Rootcomponente

                        Root(props: TimeInputRootProps): Element
                      

Propiedades

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.

hijos: Element

Ver código fuente

Segmentcomponente

                        Segment(props: TimeInputSegmentProps): Element
                      

Propiedades

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

Ver código fuente

Separatorcomponente

                        Separator(props: TimeInputSeparatorProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

TimeInputRootPropsinterfaz

Propiedades

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.

hijos: Element

Ver código fuente

TimeInputSegmentPropsinterfaz

Propiedades

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

Ver código fuente

TimeInputSeparatorPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

TimeInputValueinterfaz

Propiedades

hour
number
minute
number
second?
number

Ver código fuente