# Calendar Standard 7 - Calendar with Multiple Day Selection

> Calendar with multiple day selection.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/calendar-calendar-standard-7).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/calendar-calendar-standard-7
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/calendar-calendar-standard-7-light-c2fbecbbb30654d9.png
- Registry item: https://shadcnblocks.com/r/calendar-calendar-standard-7.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/calendar-calendar-standard-7.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `calendar`

## Files

### `example/calendar/calendar-standard-7.tsx`

```tsx
"use client";

import { useState } from "react";

import { Calendar } from "@/components/ui/calendar";

export const title = "Calendar with Multiple Day Selection";

const now = new Date();

const selectedDates = [
  new Date(now.getFullYear(), now.getMonth(), 5),
  new Date(now.getFullYear(), now.getMonth(), 15),
  new Date(now.getFullYear(), now.getMonth(), 25),
];

const Example = () => {
  const [dates, setDates] = useState<Date[] | undefined>(selectedDates);

  return (
    <Calendar
      className="rounded-md border"
      mode="multiple"
      onSelect={setDates}
      selected={dates}
    />
  );
};

export default Example;
```
