TimeGrid
Captures time value from the user with a predefined set of options
Source
LLM docs
Docs
PackageIcon
Usage
Use the TimeGrid component to capture a time value from the user with a
predefined set of time slots:
Controlled
data prop
The data prop accepts an array of time values in 24-hour format. Values
must be unique. To generate a time range, use the getTimeRange function
exported from the @mantine/dates package:
Min and max time
Set the minTime and maxTime props to limit the available time range.
Both props accept time values in 24-hour format:
Disable specific controls
You can disable specific time values by providing an array of disabled
values to the disableTime prop:
Allow deselect
Set the allowDeselect prop to allow deselecting the time value by clicking on
the control with the selected value:
Change AM/PM labels
Disabled
Set the disabled prop to disable all controls: