Rekwizyty

RekwizytTypDomyślnyOpis
valueDate | null—Selected time value (only time portion is used)
onChange(date: Date | null) => void—Callback when value changes
timeTimeConfig—Time panel configuration
localePartial<Locale>—Custom locale configuration
displayFormatstring—Custom display format for the trigger
placeholderstring—Placeholder text for the trigger
openboolean—Controlled open state
initialOpenbooleanfalsePoczątkowy stan otwarty (niekontrolowany)
onOpenChange(open: boolean) => void—Callback when open state changes
requiredbooleanfalseWyłącz czyszczenie wartości
inlinebooleanfalseRenderuj bezpośrednio bez wyzwalacza/wyskakującego okienka
hideFooterboolean—Hide the action footer
namestring—Hidden input name for form submission

TimeConfig

interface TimeConfig {
/** Time display precision. Defaults to "minute". */
precision?: "hour" | "minute" | "second";
/** 12-hour or 24-hour format. Defaults to "24". */
hourFormat?: "12" | "24";
/** Minute increment step. Defaults to 5. */
minuteStep?: 1 | 2 | 3 | 5 | 10 | 15 | 20 | 30;
/** Second increment step. Defaults to 1. */
secondStep?: 1 | 2 | 3 | 5 | 10 | 15 | 20 | 30;
/** Height (in px) of each scroll wheel item. Defaults to 32. */
itemHeight?: number;
}