Each event has a unique id, title and start, with optional end, allDay, tone and metadata. selectedDate controls the displayed period and selected day; accept selectedDateChange to move it. view supports month or week; the event Template also receives agenda as its rendering context. locale and labels control calendar text, not event translations. Calendar displays events; creating or editing them belongs to your application.
These inputs require a model or function, not a checkbox. Edit the same-named field in the Source component and bind it in the template; data already used by this preview appears in the state above.
Each event has a unique id, title and start, with optional end, allDay, tone and metadata. selectedDate controls the displayed period and selected day; accept selectedDateChange to move it. view supports month or week; the event Template also receives agenda as its rendering context. locale and labels control calendar text, not event translations. Calendar displays events; creating or editing them belongs to your application.
Use Tab to reach period controls, days and events. Enter or Space selects a day or activates an event. In compact month views, select a day to see its complete events in the agenda.
Key
Action
Tab
Move through period controls, days and events.
Enter
Select the focused day or activate the focused event or period button.
Space
Select the focused day or activate the focused event or period button.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Proposes a Date after navigation or day selection. Apply it to selectedDate.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
import { NeuCalendarEventDirective } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export declare class NeuCalendarEventDirective {
}
context.d.ts
import type { NeuCalendarEventContext } from '@neural-ui/core/calendar';
import { NeuCalendarEventDirective } from '@neural-ui/core/calendar';
// Public declaration (reference only)
readonly templateRef: TemplateRef<NeuCalendarEventContext>;
Each example demonstrates a different template. Switch between Demo and Code to inspect its implementation, imports and state.
NeuCalendarEventDirective
NeuCalendarEventDirective
NeuCalendarEventDirective
October 2026
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Thursday, October 15
1 event
Events: 0
Public Types
Open a type to inspect its definition and interface fields.
NeuCalendarEvent.d.ts
import type { NeuCalendarEventTone } from '@neural-ui/core/calendar';
import type { NeuCalendarEvent } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export interface NeuCalendarEvent {
allDay?: boolean;
description?: string;
end?: string | Date;
id: string;
meta?: string;
start: string | Date;
title: string;
tone?: NeuCalendarEventTone;
}
NeuCalendarEventContext.d.ts
import type { NeuCalendarEvent } from '@neural-ui/core/calendar';
import type { NeuCalendarEventView } from '@neural-ui/core/calendar';
import type { NeuCalendarEventContext } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export interface NeuCalendarEventContext {
readonly $implicit: NeuCalendarEvent;
readonly view: NeuCalendarEventView;
}
NeuCalendarEventTone.d.ts
import type { NeuCalendarEventTone } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export type NeuCalendarEventTone = 'neutral' | 'brand' | 'success' | 'info' | 'warning' | 'danger';
NeuCalendarEventView.d.ts
import type { NeuCalendarEventView } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export type NeuCalendarEventView = 'month' | 'week' | 'agenda';
NeuCalendarLabelOverrides.d.ts
import type { NeuCalendarLabels } from '@neural-ui/core/calendar';
import type { NeuCalendarLabelOverrides } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export type NeuCalendarLabelOverrides = Partial<NeuCalendarLabels>;
import type { NeuCalendarView } from '@neural-ui/core/calendar';
// Public declaration (reference only)
export type NeuCalendarView = 'month' | 'week';
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-error
Invalid field or danger-action color
Shared by other Core consumers; scope the override.
#dc2626
--neu-primary
Brand color for active controls and emphasis
Shared by other Core consumers; scope the override.
#007aff
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-surface-2
Secondary surfaces and alternating rows
Shared by other Core consumers; scope the override.
#f1f5f9
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-text-muted
Secondary labels and supporting content
Shared by other Core consumers; scope the override.
#475569
--neu-radius-lg
Corner radius
Shared by other Core consumers; scope the override.