Angular Calendar Component | ng-hub-ui-calendar

Angular calendar component with event views, drag and drop, templates, internationalization and CSS variables for scheduling interfaces.

API reference

Here's the full contract for calendar: everything you can bind, listen to, project and theme, gathered in one place. Wire up what you need and style what you want — it's standalone and signal-friendly.

Inputs

Dial calendar in with 6 inputs. Bind them like any Angular @Input.

NameTypeDefaultDescription
eventsCalendarEvent<T>[][]Array of events to display on the calendar
view'month' | 'week' | 'day' | 'year''month'Current view type (two-way binding with viewChange)
selectedDateDatenew Date()Currently focused date (two-way binding with dateChange)
configCalendarConfig{}Configuration options for the calendar
eventClassstring | ((event: CalendarEvent) => string)undefinedCSS class(es) to apply to events, can be static or dynamic
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 60Day the week starts on (0 = Sunday, 1 = Monday, etc.)

Outputs

React to what calendar does — 5 events to hook your logic onto.

NameTypeDescription
eventClickCalendarEvent<T>Emitted when an event is clicked
dayClickCalendarDay<T>Emitted when a day cell is clicked
eventDrop{ event: CalendarEvent<T>; newDate: Date; previousDate: Date }Emitted when an event is dropped on a different day
viewChangeCalendarViewTypeEmitted when the view type changes
dateChangeDateEmitted when navigation changes the displayed date

Templates

Make it yours — 2 template slots let you project custom markup.

NameDescriptionExample
eventTptTemplate for rendering individual events. Context: { event: CalendarEvent }<ng-template eventTpt let-event="event">{{ event.title }}</ng-template>
dayCellTptTemplate for customizing day cell rendering. Context: { day: CalendarDay }<ng-template dayCellTpt let-day="day">{{ day.date | date }}</ng-template>

CSS variables

No CSS variables documented yet.

Styling and theming

No styling examples are documented yet. This section will include customization recipes and theming examples.