> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pharen.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Event calendar

> Import and use the Event calendar components from @pharen/ui.

export const PharenUiPreview = ({name, title = 'Pharen UI component preview'}) => <div className="not-prose my-6 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-white/10 dark:bg-zinc-950">
    <div className="pharen-ui-preview-root" data-pharen-ui-preview data-example={name} role="region" aria-label={title} />
  </div>;

Use **Event calendar** to display and manage scheduled events. This page covers every Vue component exported by the public module.

<PharenUiPreview name="event-calendar" title="Event calendar preview" />

<Accordion title="View code">
  ```vue theme={null}
  <script setup lang="ts">
  import { EventCalendar, EventCalendarContent, EventCalendarNav } from '@pharen/ui';
  const events = [{
    id: 'kickoff',
    title: 'Project kickoff',
    start: new Date(2026, 7, 12, 10),
    end: new Date(2026, 7, 12, 11),
  }];
  </script>

  <template>
    <EventCalendar :events="events" default-view="month">
      <EventCalendarNav />
      <EventCalendarContent />
    </EventCalendar>
  </template>
  ```
</Accordion>

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install @pharen/ui
  ```

  ```bash pnpm theme={null}
  pnpm add @pharen/ui
  ```

  ```bash yarn theme={null}
  yarn add @pharen/ui
  ```

  ```bash bun theme={null}
  bun add @pharen/ui
  ```
</CodeGroup>

<Note>
  Import `@pharen/ui/styles.css` exactly once in your application entrypoint.
</Note>

## Usage

```ts theme={null}
import { EventCalendar, EventCalendarAgendaView, EventCalendarContent, EventCalendarDatePicker, EventCalendarDayView, EventCalendarDaysView, EventCalendarEvent, EventCalendarMonthView, EventCalendarMoreIndicator, EventCalendarNav, EventCalendarNavNext, EventCalendarNavPrev, EventCalendarNavToday, EventCalendarNowIndicator, EventCalendarResourceView, EventCalendarTimeGrid, EventCalendarTimeGutter, EventCalendarTitle, EventCalendarToolbar, EventCalendarViewSwitcher, EventCalendarWeekView, EventCalendarContext, EventCalendarViewConfigContext, EventCalendarViewContext, EventCalendarRecurrenceError } from '@pharen/ui';
```

## Exports

| Export                           | Purpose                                  |
| -------------------------------- | ---------------------------------------- |
| `EventCalendar`                  | Exported Vue component from this module. |
| `EventCalendarAgendaView`        | Exported Vue component from this module. |
| `EventCalendarContent`           | Contains the visible content.            |
| `EventCalendarDatePicker`        | Exported Vue component from this module. |
| `EventCalendarDayView`           | Exported Vue component from this module. |
| `EventCalendarDaysView`          | Exported Vue component from this module. |
| `EventCalendarEvent`             | Exported Vue component from this module. |
| `EventCalendarMonthView`         | Exported Vue component from this module. |
| `EventCalendarMoreIndicator`     | Exported Vue component from this module. |
| `EventCalendarNav`               | Exported Vue component from this module. |
| `EventCalendarNavNext`           | Exported Vue component from this module. |
| `EventCalendarNavPrev`           | Exported Vue component from this module. |
| `EventCalendarNavToday`          | Exported Vue component from this module. |
| `EventCalendarNowIndicator`      | Exported Vue component from this module. |
| `EventCalendarResourceView`      | Exported Vue component from this module. |
| `EventCalendarTimeGrid`          | Exported Vue component from this module. |
| `EventCalendarTimeGutter`        | Exported Vue component from this module. |
| `EventCalendarTitle`             | Renders the accessible title.            |
| `EventCalendarToolbar`           | Exported Vue component from this module. |
| `EventCalendarViewSwitcher`      | Exported Vue component from this module. |
| `EventCalendarWeekView`          | Exported Vue component from this module. |
| `EventCalendarContext`           | Exported Vue component from this module. |
| `EventCalendarViewConfigContext` | Exported Vue component from this module. |
| `EventCalendarViewContext`       | Exported Vue component from this module. |
| `EventCalendarRecurrenceError`   | Exported Vue component from this module. |

## Source

[Open the source on GitHub](https://github.com/PharenIT/ELEV8-Labs/tree/main/src/packages/ui/src/components/event-calendar)
