Calendar Examples
16 inline and in-dialog calendars: single days, ranges, multiple days, time slots, shortcuts and blocked dates. Each on React, Vue, Svelte and Solid, with Base UI, React Aria, Ark UI or Radix UI on React.
Every calendar example
16 examples.
- Calendar as Appointment PickerStandardA calendar beside Available Times: fourteen slots from 9:00 AM to 4:30 PM, with none filled until a slot is clicked.

- Calendar as Appointment Picker in DialogDialogA Book Appointment button that opens a calendar beside fourteen time slots, from 9:00 AM to 4:30 PM.

- Calendar with Custom Select Day StyleStandardA calendar with round days. The 6th, 14th, and 25th are bold and tinted as booked, and they can still be selected.

- Calendar with Custom Select Day Style in DialogDialogA Select Date button that opens round day buttons, with the 6th, 14th, and 25th bold, tinted, and still selectable.

- Calendar with Date and TimeStandardA calendar with a Time field under it. The day starts as today, the time starts at 12:00, and the two stay separate.

- Calendar with Date and Time in DialogDialogA Select Date & Time button that opens a calendar with a Time field under it, starting at 12:00.

- Calendar with Disabled DatesStandardA calendar that blocks weekends, the 3rd through the 7th, and the 22nd of the current month.

- Calendar with Disabled Dates in DialogDialogA Select Date button that opens a calendar blocking weekends, the 3rd through the 7th, and the 22nd.

- Calendar with Month and Year SelectorStandardA calendar whose caption is a month dropdown and a year dropdown, with the previous and next arrows removed.

- Calendar with Month and Year Selector in DialogDialogA Select Date button that opens a calendar whose caption is month and year dropdowns, with no previous or next arrows.

- Calendar with Multiple Day SelectionStandardA calendar that starts with the 6th, the 15th, and the 24th of this month selected, so several days can be chosen at once.

- Calendar with Multiple Day Selection in DialogDialogA Select Dates button that opens a calendar with the 6th, the 15th, and the 24th already selected.

Or describe it. With Pro, your AI agent installs the calendar example you describe, on your framework and UI library.
Get ProGalleries
More component examples
8 related galleries, free: open one for its live examples and their code.
Pricing
Calendar examples MCP, with Pro
Your AI agent installs any of the 1364 examples, and every component, block and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
A month grid for picking dates, always visible on the page or in a dialog. shadcn.io's Calendar handles single days, ranges and multiple days, unavailable dates, several months side by side and keyboard navigation, styled with your theme's tokens.
Yes. Every example is free to use in personal and commercial projects, with no attribution. Seeing the code and installing it takes a free shadcn.io account.
The Calendar is the grid itself, shown where you place it. The Date Picker is a button that opens a calendar in a popup and closes it after a pick. Use the Calendar when picking a date is the main task of the page or the dialog.
A calendar when people pick by looking: which weekday, what's free, how far away. A typed date input when they already know the date, such as a birth date, where the month and year dropdowns example also helps.
When choosing a date is one step of a flow and the page has no room for a month grid, such as rescheduling or filtering a report. Every example in this gallery comes inline and in a dialog, with the same calendar inside.
Put the calendar in range mode: `selectionMode` on Ark UI and the Vue, Svelte and Solid ports, `mode` on Base UI and Radix UI, and `RangeCalendar` on React Aria. The value is then a start and an end. The range examples show two months side by side.
Return `true` for the day from `isDateUnavailable` on Ark UI, React Aria and the ports, or pass the dates, ranges or weekdays to `disabled` on Base UI and Radix UI. Blocked days are dimmed and can't be selected.
Set the number of months: `numOfMonths` on Ark UI and the ports, `numberOfMonths` on the other libraries. The range examples show this month and the next.
Sign in with a free account and run the install command on the example's page. It adds the example's file, the Calendar and anything else it uses, such as Dialog, Select or Scroll Area.
Pass the locale to the Calendar, or wrap it in your locale provider: month and day names and the first day of the week follow it. Format any dates you print with `Intl.DateTimeFormat` in the same locale.
The selected day uses your theme's `primary` and `primary-foreground` tokens, and ranges use `muted` between their ends. Change the tokens to restyle every calendar, or add classes to the day cells as the custom day style example does.
Give those days their own classes, as the custom day style example does for booked days, or add a small label inside the day. Pair color with text or a disabled state so the meaning reaches screen readers too.
shadcn.io's Calendar and, in some examples, Dialog, Select, Button, Field, Input and Scroll Area, styled with Tailwind CSS. They run on React with Base UI, React Aria, Ark UI or Radix UI, and on Vue, Svelte and Solid with Ark UI. No date library is needed.
Yes. The month is a grid where the arrow keys move between days, Page Up and Page Down between months, and Enter or Space selects. Each day is labeled with its full date, and unavailable days are announced as such.
The calendar renders on the server and becomes interactive on the client. Pass the selected value and any limits, such as unavailable dates, as props from your data.
Tailwind CSS v4, with the theme tokens shadcn.io's components use.
4.9 out of 5 from 150+ developers
Every calendar example. One prompt away.
Every calendar example is free with an account. With Pro, your AI agent installs them from a prompt.
Get Pro




















