sheengemologic ui
All components

TimePicker

A contextual list of Sheen wall-clock values with deterministic interval generation.@gemologic/sheen-date · date and time

Playground

<TimePicker label="Review slot" name="slot" stepMinutes={30} defaultValue={createTime(14, 30)} />

Variant matrix

Review slot
hourCycle: 12
hourCycle: 24

Anatomy

Package
@gemologic/sheen-date
Source
packages/date/src/TimePicker.tsx
Tokens
  • --sheen-color-bg-raised
  • --sheen-color-border-control
  • --sheen-color-focus-ring

Accessibility

Role: button and listboxKeyboard: Tab, Enter, Space, Arrow keys, Home, End, Escape, Typeahead

Do

  • Use explicit options when availability is not a uniform interval.

Do not

  • Do not treat the selected wall time as an instant without a date and zone.

Generated props

NameTypeDefaultDescription
label *stringRequired visible picker label.
valueTime | nullApp-owned Sheen Time, or null.
defaultValueTime | nullInitial uncontrolled selection.
onValueChange(value: Time | null) => voidReceives selected Sheen Time values and clearing.
optionsreadonly TimePickerOption[]Optional explicit labeled wall times; values must be unique.
stepMinutesnumber15Generated interval from 1 through 720 minutes when options are omitted.
localestringExplicit BCP 47 label locale, defaulting to theme context.
hourCycle12 | 24Explicit generated-label hour cycle.
namestringNative form name for HH:mm:ss.SSS.
formstringOptional external form owner.
placeholderstringEmpty-selection text.
descriptionstringAssociated instructions.
errorstringAssociated app validation error.
requiredbooleanfalseRequires a selection.
disabledbooleanfalseDisables interaction and projection.
readOnlybooleanfalseAllows inspection while rejecting changes.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.