DocsComponentsTemplatesThemesGitHub

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.json

Guidelines

  • Use inline in booking flows; otherwise use DatePicker.

Props

PropTypeRequired
mode'single' | 'range'No
valueanyNo
defaultValueanyNo
onChange(value: any) => voidNo
minDateNo
maxDateNo
classNamestringNo

Edit this example on GitHub