preskok/ui

Time Field

A time input field with segmented time entry.

Installation

pnpm dlx preskok-ui@latest add time-field

Usage

import { DateInput } from "@/components/ui/preskok-ui/date-field"
import { Label } from "@/components/ui/preskok-ui/field"
import { TimeField } from "@/components/ui/preskok-ui/time-field"
 
export function TimeFieldDemo() {
  return (
    <TimeField>
      <Label>Time</Label>
      <DateInput />
    </TimeField>
  )
}

Examples

Hour Cycle Toggle

Validation With Business Hours