modereq- Type
"single" | "range" | "multiple"- Default
- -
- Description
- Selection mode.
Search for a command to run...
Components / Inputs
நாட்காட்டி
The Calendar component provides an accessible date picker. Use it for date-of-birth fields, appointment scheduling, and deadline selection.
நாட்காட்டி கூறு அணுகக்கூடிய தேதி தேர்வியை வழங்குகிறது.
4 parts documented for implementation and review.
<div>Navigation bar with previous/next month arrow buttons and current month/year label. Arrows are icon-only buttons with aria-labels. For Tamil, show Tamil month names when localized.
<div>Row of abbreviated day name headers (Su Mo Tu We Th Fr Sa) labeling the 7-column grid. Uses text-muted-foreground text-xs. For Tamil: use abbreviated forms.
<button>Clickable date cells in a 7-column grid. Selected date uses brand background (bg-primary) with white text. Keyboard: arrow keys navigate, Enter selects. Disabled dates show at opacity-50.
Range indicator connecting start and end dates. Endpoints get full brand color, in-between dates get subtle brand/10 tint for visual continuity across the selected range.
modereq"single" | "range" | "multiple"selectedDate | DateRange | Date[]onSelect(date: ...) => voiddisabledMatcher | Matcher[]fromDateDatetoDateDate| Prop | Type | Default | Description |
|---|---|---|---|
modereq | "single" | "range" | "multiple" | - | Selection mode. |
selected | Date | DateRange | Date[] | - | Controlled selected date(s). |
onSelect | (date: ...) => void | - | Fired on date selection. |
disabled | Matcher | Matcher[] | - | Disable specific dates, days of week, or date ranges. |
fromDate | Date | - | Earliest selectable date. |
toDate | Date | - | Latest selectable date. |
fromDate/toDate to limit the range to valid ages.disabled matcher.Selected dates should use brand colors so users can immediately see which date is chosen.
தேர்ந்தெடுத்த தேதி உடனடியாக தெரியும்படி தெளிவான வண்ண குறி பயன்படுத்தவும்.
If future or past navigation is disabled, show a message explaining why so users are not confused.
வழிசெலுத்தல் ஏன் முடக்கப்பட்டுள்ளது என்பதை தெரிவிக்காமல் பயனரை குழப்பாதே.
Use mode='range' for leave applications and booking periods so the start and end dates are clearly shown.
விடுப்பு விண்ணப்பம் மற்றும் முன்பதிவிற்கு range பயன்படுத்தி தொடக்க மற்றும் முடிவு தேதி காட்டவும்.
For displaying a single static date, use formatted text — a full Calendar is an interactive element, not a display widget.
ஒரு தேதியை காட்ட வடிவமைக்கப்பட்ட உரை போதுமானது — நாட்காட்டி ஒரு தொடர்பு கூறு.