ember-power-calendar
Customizable Calendar Component for Ember.
Features
- π TypeScript support β ships with type definitions for smooth TypeScript integration.
- β¨ Glint support β template type-checking out of the box for safer templates.
- π FastBoot compatible β works in server-rendered Ember apps.
- πΆ Shadow DOM support β can be rendered inside shadow roots without breaking positioning or events.
- π Addon v2 ready β modern Ember Addon v2 format.
- π§± Headless & flexible β build any calendar or date-picker UI without being constrained by markup or styles.
- π― Powerful selection modes β choose between single, range, or multiple date selection
- π§ Flexible calendar API β plug in your preferred date library (e.g., momentjs, date-fns, Luxon)
- π§© Composable β assemble calendars using yielded subcomponents like days and navigation.
- βΏ Accessible by default β full keyboard navigation, ARIA attributes, and focus management built-in.
- π¨ Fully customizable rendering β control how days, headers, and disabled states are displayed.
Compatibility
- Embroider or ember-auto-import v2
- Ember.js v4.12 or above
Installation
pnpm install ember-power-calendar
Usage
There are many possible ways to use it, for giving you just a taste of the API:
import PowerCalendar from "ember-power-calendar/components/power-calendar";
<template>
<PowerCalendar @selected={{this.arrival}} @onSelect={{this.onChange}} as |calendar|>
<calendar.Nav/>
<calendar.Days/>
</PowerCalendar>
</template>
Check the full documentation at www.ember-power-calendar.com