syncfusion/blazor-toolkit/syncfusion-blazor-toolkit-calendars
Claude Code and agent skill by syncfusion/blazor-toolkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Implement Syncfusion Blazor Toolkit calendar and date/time input components — SfCalendar, SfDatePicker, SfDateTimePicker, SfTimePicker. USE FOR: date-only, date-time, or time-only selection; date range restriction (Min/Max); custom date formats (culture-invariant vs locale); multi-date selection; disabled weekends/holidays via DayCellRendering; and culture/timezone-sensitive formatting. DO NOT USE FOR: text or email input (use syncfusion-blazor-toolkit-inputs), scheduling or calendar recurrence (use Scheduler — not in this skill), or date validation that requires an API round-trip (handle in EditContext validator instead).
Install
npx vskill@latest install syncfusion/blazor-toolkit/syncfusion-blazor-toolkit-calendarsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as syncfusion/blazor-toolkit/syncfusion-blazor-toolkit-calendars.
Syncfusion Blazor Toolkit - Calendar Components
⚙️ Render mode:SfCalendar,SfDatePicker,SfDateTimePicker,SfTimePickerrequire an interactive render mode (Server, WebAssembly, or Auto @ .NET 8+). Interactive event delivery (ValueChanged,DayCellRendering, …) requires it.
Core Rules
The four rules below are the highest-impact; the rest (5–8) live in references/critical-gotchas.md — read it first if you have any time/format/validation question. These top 4 together prevent ~95% of calendar bug reports.
- Pick the right `TValue`:
DateOnly?for date-only (avoids accidental
timezone drift); DateTime? for date-time; never use TimeOnly? — it is not supported by SfTimePicker.
- The calendars do no timezone conversion. The bound
DateTimeis the wall-clock value the user picked,
and its DateTimeKind is whatever you supplied (typically Unspecified). Keep the UI in local wall-clock time and convert explicitly at the persistence boundary — see rule 2 in references/critical-gotchas.md.
- `Format` is culture-invariant when you supply a literal pattern
("dd/MM/yyyy"); culture-aware when you supply a token ("d", "D"). Never mix the two in one form.
- `Min` / `Max` are inclusive and compared as wall-clock values. Provide
them in the same frame as Value (the user's local wall-clock time); never mix a UTC Min with a local Value.
Rules 5–8 — DayCellRendering mutation discipline, aria-label opt-in, @bind-Value + ValueChanged double-fire, and midnight re-render — live in references/critical-gotchas.md.
Don'ts
Cross-reference with critical-gotchas.md: rules below mirror the 8-rulereference at references/critical-gotchas.md;the rules duplicated here (rows 1, 3, 5, 7, 8) are surfaced inline becausethey're the most common agent mistakes. When in doubt on timezones,values, or rendering — read the full gotchas reference.
| Anti-pattern | Symptom | Fix | |
|---|---|---|---|
TValue="DateTime" (non-nullable) inside EditForm | "Object reference not set" on first render; type-mismatch exception | Use TValue="DateTime?" (or DateOnly?) | |
TValue="TimeOnly?" on SfTimePicker | Empty input; [Required] rejects valid user input | TValue="DateTime? Format="HH:mm" | |
Min/Max built from DateTime.UtcNow while Value is local wall-clock | Off-by-one day selection near midnight | Build Min/Max and Value in the same frame (local wall-clock), and convert to UTC only when persisting | |
args.IsHighlight = true in DayCellRendering | Throws — property doesn't exist | Use args.CellClass = "highlight" and style the class | |
Subscribe ValueChanged and @bind-Value | Both fire; the second wins; sometimes a render-loop | Pick one. Use @bind-Value:after for side effects | |
One SfCalendar driving two date inputs | Renderer mounts a single DOM, second input has no calendar | Per-input <SfDatePicker>, share state via CascadingValue<T> | |
<SfCalendar> inside a Server-mode page that pre-renders today | Highlight misses today's date because of a half-day clock skew between server UTC and client local | Compute "today" from the user's timezone (e.g. a client-supplied offset/TimeZoneInfo), not DateTime.Now on the server | |
Format="d" mixed with Format="yyyy-MM-dd" in one form | Validation messages disagree; tooltip provides two formats | Pick one (invariant vs culture) per form | |
Reading args.Date and assuming it's DateOnly-typed | It's DateTime (midnight, server-side); comparison may be wrong | Compare against args.Date.Date against your Min same way | |
Setting Min only — never Max | Calendar allows any future date; user picks 2099 | Pair with Max whenever Min is set |
Anti-Pattern Workflows
Workflow 1 — Agent mixes UTC and local values
Bad:
Why it fails: today and Min are UTC-based, but the user picks dates as local wall-clock values and the calendar does no conversion. A user in Tokyo at 09:00 (Jan 1 local = 00:00 UTC) sees "Jan 1 enabled" — correct by accident. A user in New York at 19:00 (Jan 1 local = 00:00 UTC) sees "Dec 31 disabled" — wrong.
Correct: keep Value, Min and Max in one frame (local wall-clock) and convert only when persisting:
Workflow 2 — Agent sets DayCellRendering to highlight holidays but args.IsHighlight doesn't exist
Bad:
Fix: use CellClass (you style with CSS):
Workflow 3 — Agent binds @bind-Value to ValueChanged
Bad:
Correct: use @bind-Value:after (.NET 8+) for post-commit logic:
Workflow 4 — Agent expects calendar to "remain today" past midnight
Bad: leave SfCalendar open across midnight expecting the highlight to move forward — the renderer doesn't re-tick.
Correct: for "ticking" UX, wire a Timer for the page-level refresh:
For non-essential UX, prefer a plain "Today" pill button that re-binds the date on click instead of keeping a timer running.
Workflow 5 — Agent wants to persist UTC but show local values
Correct:
For the full 8-rule reference, see
Minimal Example
Documentation and Navigation Guide
| Need | Read | |
|---|---|---|
| First component / installation | references/getting-started.md | |
| Core features (selection, formatting, validation) | references/features.md | |
Per-component reference (SfCalendar, DatePicker, DateTimePicker, TimePicker) | references/calendar.md, references/datepicker.md, references/datetimepicker.md, references/timepicker.md | |
| Events and two-way binding | references/events-binding.md | |
| API reference (properties, events, methods, enums) | references/api-reference.md | |
| Troubleshooting | references/troubleshooting.md |
⚠️ Read references/critical-gotchas.md first — UTC vs local time,TValueselection,Formatmixing,Min/Maxinclusivity,DayCellRenderingmutation rules, accessibility labelling,@bind-Value+ValueChangedinteraction,DateTime.Nowsnapshot.
Next Steps
- Read first: references/critical-gotchas.md
- Setup: references/getting-started.md
- Per-component reference: the relevant
references/*.md
Demo: https://blazor.syncfusion.com/demos/toolkit/calendar
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/syncfusion-blazor-toolkit-calendars/SKILL.md
Popularity
- Repository stars
- 19
- Repository forks
- 8
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/syncfusion/blazor-toolkit/syncfusion-blazor-toolkit-calendars)