Calendar Component

A date field component that allows users to enter and edit date. Supports single date selection with full keyboard navigation.

Default

A basic calendar for date selection.

February 2026
SuMoTuWeThFrSa

Selected: None

Dropdown Mode

Use dropdown selects for quick month and year navigation.

SuMoTuWeThFrSa

Selected: None

With Date Constraints

Limit selection to a specific date range.

February 2026
SuMoTuWeThFrSa

Selected: None
Range: Today to 3 months from now

Disable Weekends

Use a custom function to disable specific dates.

February 2026
SuMoTuWeThFrSa

Selected: None
Weekends are disabled

With Initial Month

Start with a specific month displayed.

December 2025
SuMoTuWeThFrSa

Selected: None
Starts at December 2025

Side by Side

Multiple calendars for comparison or date range selection.

February 2026
SuMoTuWeThFrSa
February 2026
SuMoTuWeThFrSa

From: None ΓÇö To: None

Features

  • Single date selection with @bind-SelectedDate
  • MinDate and MaxDate constraints
  • Custom date disabling via IsDateDisabled function
  • Month navigation with previous/next buttons
  • Dropdown mode for quick month/year selection
  • Culture-aware formatting and first day of week
  • ARIA grid roles for accessibility
  • Full keyboard navigation support

Keyboard Navigation

←/→ Previous/Next day
Γåæ/Γåô Previous/Next week
Home/End First/Last day of month
PageUp/PageDown Previous/Next month
Shift+PageUp/PageDown Previous/Next year
Enter/Space Select date

Installation

@using BlazorUI.Components.Calendar

Usage

<Calendar @bind-SelectedDate="selectedDate"
          MinDate="DateOnly.FromDateTime(DateTime.Today)"
          MaxDate="DateOnly.FromDateTime(DateTime.Today.AddMonths(3))" />

@code {
    private DateOnly? selectedDate;
}
An unhandled error has occurred. Reload 🗙