Skip to content
satin

Availability calendar

Pro

A calendar for booking: which days have free slots and how many, full days off with the reason.

Pick a day for your interview

Product Designer · 45 min video call

November 2026
SMTWTFS
Thursday, November 26

Installation

Terminal
npm i @uisatin/ui @uisatin/pro
Import
import '@uisatin/ui/styles.css'
import '@uisatin/pro/styles.css'
import { AvailabilityDatePicker } from '@uisatin/pro/date-availability'

Part of Satin Pro, the licensed edition: @uisatin/pro on top of @uisatin/ui at the same version, its stylesheet after Free's. Satin Pro isn't on npm yet.

About 1.0 kB of JavaScript, minified and gzipped, on top of the @uisatin/uicomponents it uses (React aside).

First time with Satin? Set it up once, styles and fonts included, with the installation guide.

API Reference

The AvailabilityCalendar component (Satin Pro, @uisatin/pro/date-availability) is a Calendar whose days show their free slots: a green dot (a ring at fewSlots or fewer) and a Tooltip ("3 slots"), said in the day's name too. A day listed with 0 is fully booked: faded, not pickable, still reachable with the arrow keys, its reason in the tooltip and the name. A day left out has no slots. availability is keyed by ISO date; isoDate(date) makes the key. AvailabilityDatePicker is the same in a DatePicker field, and useAvailability({ availability }) returns the isDisabled and renderDay to give any Calendar or picker. Every other Calendar prop (month, min, max, today, header, weekStartsOn) passes through, and AvailabilityDatePicker takes presets: one on a day without free slots is off.

PropTypeDefault
availability
Record<string, number>
—
fewSlots
number
2
reason
(date: Date) => string | undefined
—
isDisabled
(date: Date) => boolean
—
value
Datenull
—
defaultValue
Datenull
null
onValueChange
(value: Date) => void
—
today
Date
—

Accessibility

Calendar's grid, one tab stop, with each day a button named by its full date and what it offers: "Thursday, November 26, 2026, 3 free slots", or why it can't be picked ("…, Fully booked", or the app's reason). A full day has aria-disabled instead of disabled, so the arrow keys reach it and its tooltip opens there; Enter and clicks do nothing. The dots are hidden from screen readers, and the tooltip isn't added as a description, since the name already says it. Few slots read as a ring, not only a colour. Translate the words with availabilitySlots, availabilityFreeSlots, availabilityFull and availabilityDay in SatinLabels.

KeyAction
←or→Moves a day back or forward, onto full days too, turning the month when needed; mirrored right to left.
↑or↓Moves a week back or forward.
Page UporPage DownMoves a month back or forward.
HomeorEndMoves to the first or the last day of the week (from the locale, or weekStartsOn).
EnterorSpacePicks the focused day if it has free slots.
EscCloses the open tooltip; in AvailabilityDatePicker, a second Esc closes the calendar and returns focus to the field.