Calendar
Inline month calendar (single or range).
Code
import * as React from 'react';
import { Calendar } from '@fruit-labs/design';
export default function Demo() {
return (
<Calendar
mode="range"
defaultValue={{
start: new Date(2026, 11, 8),
end: new Date(2026, 11, 12),
}}
value={undefined}
/>
);
}Install
From npm:
npm install @fruit-labs/design
import { Calendar } from '@fruit-labs/design';Or copy the TypeScript source into your project:
npx shadcn@latest add https://design.fruitlabs.online/r/calendar.jsonGuidelines
- Use inline in booking flows; otherwise use DatePicker.
Props
| Prop | Type | Required |
|---|---|---|
mode | 'single' | 'range' | No |
value | any | No |
defaultValue | any | No |
onChange | (value: any) => void | No |
min | Date | No |
max | Date | No |
className | string | No |