Code
In context
Install · Free Web Component
One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.
The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:
Pro · React + TypeScript Pro
One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.
- React component (controlled or uncontrolled) with TypeScript types and the full source
- Sunset, Mint and Mono tints, plus custom tints from Brand Fit
- The vanilla Web Component with every tint, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| value | string | '' | The chosen day as a local ISO date, '2026-11-19'. In range mode both ends with a slash: '2026-11-10/2026-11-19'. Fires change with detail.value. |
| mode | 'single' | 'range' | 'single' | One day, or a range: the first click sets the start, the second the end. change fires once the range is complete, with detail.start and detail.end. |
| min / max | yyyy-mm-dd | — | First and last day that can be picked. Days outside lose their well, and the month arrows stop at the edge. |
| week-start | 0 | 1 | 1 | 0 starts the week on Sunday, 1 on Monday. weekStart in React. |
| locale | BCP 47 tag | page language | Language of the month title, the weekday names and each day's spoken label, e.g. 'de' or 'pt-BR'. Defaults to <html lang>, then English. |
| month | yyyy-mm | month of the value | The month on show. Without it the calendar opens on the value, or on today. A month event (detail.month) fires when the user moves; el.show("2027-01") moves it from script. |
| size | number (px) | 40 | Size of one day cell; the slab, the type and the arrows scale with it. 44 and up is comfortable on touch screens. |
| theme | 'light' | 'dark' | 'light' | White porcelain or dark. Follows data-ui-theme on any ancestor when not set. |
| name | string | — | Form field name: a hidden input carries the value into the surrounding form. |
| label | string | — | What the dates are for ("Trip dates") — read out by screen readers before the month. |
| disabled | boolean | off | Dims it and ignores input. |
| sound | boolean | off | A porcelain tap on a pick and a tick when the month changes. Also on for everything inside an element with data-ui-sound="on". |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the halo, the band of light and the chosen number, or a custom tint. Free build ships Aurora only. |
It is a WAI-ARIA date grid with one tab stop: the arrows move by day and week, Home / End go to the ends of the week, Page Up / Page Down change month (with Shift, year), Enter or Space picks. Every day is a real button with its full date as its label. Days from the neighbouring months are dimmed and can be picked — the grid slides over to them. Clicking the month title returns to today, which carries a small tinted dot. Values are local dates: nothing is ever parsed as UTC, so a day cannot slip across a time zone. All CSS, no WebGL; reduced motion keeps the pearl and the light and drops the hop, the pour and the slide.
More components
- Tide Slide
- Pearl Code
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Pearl Select
- Pearl Accordion
- Pearl Chip
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Aurora Ring
- Glass Toggle
- Pearl Loader
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Glass Toast
- Glass Sheet
- Glass Tip
- Glass Nav
- Pearl Tabs
- Glass Command
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Tabbar
- Glass Menu
- Pearl Pricing
- Glass Bento
- Quote Wall
- Glass Cta
- Magnet Button
- Beam Border
- Spotlight Card
- Scratch Reveal
- Glass Sidebar
- Pearl Pagination
- Pearl Breadcrumb
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Firefly Button
- Pearl Button
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel