Marking types
The library supports the following marking types:Dot marking
The simplest marking type displays a small colored dot below the date. Perfect for indicating events or important dates.Dot properties
Whether the date should display a dot marker
Custom color for the dot. Defaults to theme’s
dotColorDot color when the date is selected. Defaults to theme’s
selectedDotColorMulti-dot marking
Display multiple colored dots below a date, ideal for showing multiple events or categories on the same day.Multi-dot properties
Array of dot objects to display
The
key property is optional but recommended for React’s reconciliation. Each dot must have a color property.Period marking
Highlight date ranges with colored backgrounds. Perfect for showing date ranges like reservations, events, or availability.Period properties
Background color for the period
Whether this date starts a period (adds rounded left edge)
Whether this date ends a period (adds rounded right edge)
Custom text color for dates in the period
Combining period with dots
You can combine period marking with dot markers:Multi-period marking
Display multiple overlapping period ranges on the same dates. Each period is rendered as a separate horizontal bar.Multi-period properties
Array of period objects to display
Use
color: 'transparent' to create spacing between periods when you need alignment across multiple dates.Custom marking
Create completely custom date styles with full control over container and text styling.Custom marking properties
Custom styles for the date
Custom marking automatically applies
borderRadius: 16 to containers unless you specify a different value.Common marking properties
These properties work across all marking types:Whether the date is selected
Whether the date is disabled (grayed out)
Whether the date is inactive (dimmed)
Disable touch events for this date
Touch opacity when pressing the date
Custom background color for selected state
Custom text color for selected state
Custom text color for the date
Custom text style object
Custom container style object
Custom accessibility label for screen readers
Type definitions
The complete marking interface from the source code:Best practices
Choose the right marking type
Choose the right marking type
- Dot: Single events or simple indicators
- Multi-dot: Multiple events on the same day
- Period: Date ranges like bookings or availability
- Multi-period: Overlapping ranges or multiple categories
- Custom: Complete visual control for unique designs
Performance considerations
Performance considerations
Marking types are rendered in this order (from most to least performant):
- Dot (simplest rendering)
- Multi-dot
- Period
- Custom
- Multi-period (most complex rendering)
Accessibility
Accessibility
Always provide
accessibilityLabel for dates with special meaning to improve screen reader support: