Mini Calendar
Mini Calendar separates selected date from the start date of the visible range.
Practical React example
Choose a date from a short visible run of days.
Before you copy and paste
Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/mini-calendar/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button.
Listed package dependencies: @radix-ui/react-use-controllable-state, date-fns, lucide-react, radix-ui.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Choose a date from a short visible run of days
// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";
import {
MiniCalendar,
MiniCalendarDay,
MiniCalendarDays,
MiniCalendarNavigation,
} from "@/components/kibo-ui/mini-calendar";
const Example = () => (
<MiniCalendar>
<MiniCalendarNavigation direction="prev" />
<MiniCalendarDays>
{(date) => <MiniCalendarDay date={date} key={date.toISOString()} />}
</MiniCalendarDays>
<MiniCalendarNavigation direction="next" />
</MiniCalendar>
);
export default Example;
Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.
Use value for the chosen date and startDate for navigation when controlling both. Define the user’s time zone before converting a selection into a server date or timestamp.
Customization
- MiniCalendarProps.value
- Optional; Date.
- MiniCalendarProps.defaultValue
- Optional; Date.
- MiniCalendarProps.onValueChange
- Optional; (date: Date | undefined) => void.
- MiniCalendarProps.startDate
- Optional; Date.
- MiniCalendarProps.defaultStartDate
- Optional; Date.
- MiniCalendarProps.onStartDateChange
- Optional; (date: Date | undefined) => void.
- MiniCalendarProps.days
- Optional; number.
- MiniCalendarNavigationProps.direction
- Required; "prev" | "next".
- MiniCalendarNavigationProps.asChild
- Optional; boolean.
- MiniCalendarDaysProps.children
- Required; (date: Date) => ReactNode.
- MiniCalendarDayProps.date
- Required; Date.
Integration notes
- A highlighted day is not proof that a booking or reservation exists.
- Test keyboard navigation and dates crossing month, year and daylight-saving boundaries.
Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.