Component docs
Loading
"use client";
import { TimeField } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue | string | — | Initial value when uncontrolled. |
onValueChange | (value: string, event: ChangeEvent<HTMLInputElement>) => void | — | Called with the new value (only when it changes). |
value | string | — | Current value (controlled); null where it means "nothing selected". |
defaultValuestring
Initial value when uncontrolled.
onValueChange(value: string, event: ChangeEvent<HTMLInputElement>) => void
Called with the new value (only when it changes).
valuestring
Current value (controlled); null where it means "nothing selected".
Other props are passed to the root element (InputHTMLAttributes<HTMLInputElement>), including className, style, id and aria-* attributes.
<TimeField />