AsterUIDocsv1.0.2

Docs / Component reference

TimePicker

Choose an hour and minute. The caller can set the minute interval and use a 12- or 24-hour display.

Time picker example

Install

sh
npx @fierst/ui@1.0.2 add time-picker

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/time-picker: TimePicker.

Download the registry source for time-picker 1.0.2.

API contracts

ts
export function* TimePicker(
  props: {
    label?: string;
    value?: string;
    defaultValue?: string;
    stepMinutes?: number;
    use24h?: boolean;
    disabled?: boolean;
    onChange?: (hhmm: string) => void;
    class?: string;
  },
  ctx: Ctx,
)