Skip to content

Time Slots

Pro

A grid of the free times of one day, grouped by morning and afternoon. Booked times show struck through, and a person cannot pick them.

  • Base UI
  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Time Slots needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
18
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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>
PropTypeDefaultDescription
columns"auto"343
size"default""lg""sm""default"
classNamestring—
hourCycle1224—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
disabledbooleanfalseWhether the component should ignore user interaction.
readOnlybooleanfalseWhether the user should be unable to select a different radio button in the group.
requiredbooleanfalseWhether 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>
PropTypeDefaultDescription
...props<fieldset> attributes—Every other attribute goes to the <fieldset>, with a ref.

TimeSlotsGroupLabel

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TimeSlotsItem

<span>
PropTypeDefaultDescription
classNamestring—
valueRequiredValue—An ISO time, "09:30" or "09:30:00". The label is formatted from it.
From Base UIRadio.RootBase UI docs
disabledboolean—Whether the component should ignore user interaction.
requiredboolean—Whether the user must choose a value before submitting a form.
readOnlyboolean—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>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TimeSlotsEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it after people pick a day, such as in a booking card.
  • Use disabled on an item for a booked time. It keeps its place.
  • Use TimeSlotsGroup to group times by part of the day.
  • Use TimeSlotsEmpty for a day with no free time.
Press
press · the slot scales to 97% while pressed

Built with

Installs with Time Slots

Components
Button
  1. AddedTime Slots, with Button.
Open the release