sheengemologic ui
All components

TimeField

A locale-ordered segmented wall-clock editor with a timezone-free ISO projection.@gemologic/sheen-date · date and time

Playground

Cutoff time
430PM
<TimeField label="Cutoff time" name="cutoff" defaultValue={createTime(16, 30)}  granularity="minute"/>

Variant matrix

Cutoff time
Cutoff time
430PM
hourCycle: 12
Cutoff time
430PM
hourCycle: 24
Cutoff time
1630
granularity: minute
Cutoff time
430PM
granularity: second
Cutoff time
43000PM

Anatomy

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

Accessibility

Role: group of spinbuttonsKeyboard: ArrowLeft, ArrowRight, ArrowUp, ArrowDown, PageUp, PageDown, Home, End, numeric keys

Do

  • Keep a wall-clock Time separate from the zone that gives it an instant.

Do not

  • Do not anchor a standalone Time to the browser's current date.

Generated props

NameTypeDefaultDescription
label *stringRequired visible field label.
valueTime | nullApp-owned Sheen Time, or null.
defaultValueTime | nullInitial uncontrolled wall time.
onValueChange(value: Time | null) => voidReceives complete valid wall times and clearing.
placeholderValueTimeDeterministic values shown behind empty segments.
minValueTimeMinimum wall time.
maxValueTimeMaximum wall time.
localestringExplicit BCP 47 locale, defaulting to theme context.
hourCycle12 | 24Explicit 12- or 24-hour cycle; omission follows the locale.
granularityTimeGranularityminuteSmallest editable unit.
namestringNative form name for HH:mm:ss.SSS.
formstringOptional external form owner.
descriptionstringAssociated instructions.
errorstringAssociated app validation error.
requiredbooleanfalseMarks the editor required.
disabledbooleanfalseDisables editing and projection.
readOnlybooleanfalseRetains focus while rejecting edits.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.