Put the free times in groups for each part of the day. Add a description to a slot for its price or why it is taken.
haircut-times.tsx
TimeSlots
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| columns | "auto"34 | 3 | ||||||||||||||||||||||||||||||||||||||||||
| size | "default""lg""sm" | "default" | ||||||||||||||||||||||||||||||||||||||||||
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||
| hour | 1224 | — | 12 shows "9:30 AM", 24 shows "09:30". With none, the locale decides (en-US 12, en-GB 24), as the Time Field does. The hour has two digits where the locale writes them ("09:30" in en-GB, "9:30" in ja-JP): isHourPadded in lib/time-format. | |||||||||||||||||||||||||||||||||||||||||
From Base UIRadioGroupBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | |||||||||||||||||||||||||||||||||||||||||
| read | boolean | false | Whether the user should be unable to select a different radio button in the group. | |||||||||||||||||||||||||||||||||||||||||
| required | boolean | false | Whether the user must choose a value before submitting a form. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||||||||||||||||||||||||||||||||||||
TimeSlotsGroup
<fieldset>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <fieldset> attributes | — | Every other attribute goes to the <fieldset>, with a ref. |
TimeSlotsGroupLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TimeSlotsItem
<span>| Prop | Type | Default | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||
| value | Value | — | An ISO time, "09:30" or "09:30:00". The label is formatted from it. | ||||||||||||||||||||||
From Base UIRadio.RootBase UI docs | |||||||||||||||||||||||||
| disabled | boolean | — | Whether the component should ignore user interaction. | ||||||||||||||||||||||
| required | boolean | — | Whether the user must choose a value before submitting a form. | ||||||||||||||||||||||
| read | boolean | — | Whether the user should be unable to select the radio button. | ||||||||||||||||||||||
| |||||||||||||||||||||||||
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. | ||||||||||||||||||||||
TimeSlotsItemDescription
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TimeSlotsEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
Built with
Installs with Time Slots
- Components
- Button









