# TimeRangeField (@limerdev/zest) A span of time typed as two times, segment by segment: `` (`bind:value` a `{ start, end }` of `Time`s, `granularity`, `hourCycle`) holds a `TimeRangeField.Label` (which names it; use it instead of `Field.Label`) and `TimeRangeField.Inputs`, one box that draws the start and end `TimeRangeField.Input`s. Inside a `Field`, its description and error describe the inputs. - Category: Data input - Import: `import { TimeRangeField } from '@limerdev/zest'` - Bits UI: `TimeRangeField`, https://bits-ui.com/docs/components/time-range-field - Exports: `TimeRangeField.Root`, `TimeRangeField.Label`, `TimeRangeField.Inputs`, `TimeRangeField.Input`, `TimeRangeField.Segment` - Use for: Opening hours, a shift, a meeting slot. - Don't: A period of days: use `DateRangeField`. A single time: use `TimeField`. ```svelte Shift ``` Props of `TimeRangeField.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 date. When provided, the time field will be marked as invalid if the user enters a date after this date. - `minValue` (`TimeValue`): The minimum acceptable date. When provided, the time field will be marked as invalid if the user enters a date before this date. - `onEndValueChange` (`OnChangeFn