ICalendarProps
interface
Data & Items
Props for calendar grid components — controls the visible month/year, selected dates, allowed-dates predicate, min/max bounds, weekday layout and adjacent-month visibility.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- allowedDatesArray<unknown> | ((date: unknown) => boolean)
- An array of allowed date values, or a function returning true for dates that should be selectable.
- disabledboolean
- Disables all date interactions.
- displayValueunknown
- The date value used for display purposes (e.g. hover highlight).
- dateReadonlyArray<unknown> | Array<unknown>
- Currently selected date(s).
- monthnumber
- The month currently displayed (0-indexed).
- maxunknown
- The maximum selectable date.
- minunknown
- The minimum selectable date.
- showAdjacentMonthsboolean
- Show days from the previous and next months in the current grid.
- yearnumber
- The year currently displayed.
- weekdaysArray<number>
- Array of weekday indices to display (0 = Sunday … 6 = Saturday).
- weeksInMonthTCalendarStrategy
- Strategy for computing the number of week rows in the month view.
- firstDayOfWeeknumber
- Index of the first day of the week (0 = Sunday, 1 = Monday…).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Basic date picker with min/max