# TimeField (@limerdev/zest) A time of day typed segment by segment, in the `locale`'s format: `` (`bind:value` a `Time` from `@limerdev/zest`, `granularity` `hour`, `minute` or `second`, `hourCycle` 12 or 24, `minValue`, `maxValue`, `name`) holds a `TimeField.Label` (which names the field; use it instead of `Field.Label`) and a `TimeField.Input`, which draws its segments. Type digits or use the arrow keys. Inside a `Field`, its `Field.Description` and `Field.Error` describe the field. - Category: Data input - Import: `import { TimeField } from '@limerdev/zest'` - Bits UI: `TimeField`, https://bits-ui.com/docs/components/time-field - Exports: `TimeField.Root`, `TimeField.Label`, `TimeField.Input`, `TimeField.Segment` - Use for: A time people type: when a shift starts, a meeting time, a reminder. - Don't: A date and a time together: use `DateField` with `granularity="minute"`. A duration (hours worked): use `Input type="number"`. ```svelte Shift starts ``` Props of `TimeField.Root`: - `disabled` (`boolean`, default `false`): If true, the time field will be disabled and users will not be able to interact with it. This also disables the hidden input element if the time field is used in a form. - `errorMessageId` (`string`): The `id` of the element which contains the error messages for the time field when the time is invalid. - `granularity` (`"hour" | "minute" | "second"`, default `'minute'`): The granularity of the time field. This determines which segments will be includes in the segments array used to build the time field. Granularity is only used for visual purposes, and does not impact the value of the time field. You can have the same value synced between multiple time fields with different granularities and they will all contain the same value. - `hideTimeZone` (`boolean`, default `false;`): Whether or not to hide the timeZoneName segment from the time field. - `hourCycle` (`12 | 24`, default `the locale's default time format`): The format to use for displaying the time in the input. If using a 12 hour clock, ensure you also include the `dayPeriod` segment in your input to ensure the user can select AM/PM. - `locale` (`string`, default `'en'`): The locale to use for formatting the time field. - `maxValue` (`TimeValue`): The maximum acceptable time. When provided, the time field will be marked as invalid if the user enters a time after this time. - `minValue` (`TimeValue`): The minimum acceptable time. When provided, the time field will be marked as invalid if the user enters a time before this time. - `onInvalid` (`TimeOnInvalid`): A callback fired when the time field's value is invalid. Use this to display an error message to the user. - `onPlaceholderChange` (`OnChangeFn`): A callback that is called when the time field's placeholder value changes. - `onValueChange` (`OnChangeFn