Component libraryCalendar agenda
Calendar agenda
ProA controlled month calendar that becomes a usable agenda on narrow screens, with native date, navigation, and event actions.
npx shadcn@latest add @tidal-pro/calendar-agendaInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/calendar-agenda.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
title, visibleMonthLabel, seven consumer-supplied weekdays, date-only day records, previous/next actions and onDateSelect are required. Days require a supplied date-only string, visible label and accessible label, with optional outside-month/today/disabled state, events, native button attributes/ref. Today uses native aria-current=date. Events are typed native links or buttons with visible/accessibility labels, optional native time/meta/selected/disabled state, attributes/ref and consumer callback. Empty-string hrefs and explicit aria-disabled false are preserved; boolean or string aria-disabled true resolves disabled link behavior; modified link navigation stays native; disabled links suppress caller handling and navigation. Button/day/navigation native handlers run before higher callbacks, and preventDefault suppresses the higher callback. Button type defaults to button while native form ownership remains available. Optional heading level, eyebrow, description, navigation/weekdays/calendar/today/no-events labels, emptyMessage, footer and native section attributes/ref remain consumer-owned. Consumers supply all dates, labels, selected state, month transitions, event destinations and outcomes. The component performs no date parsing, timezone conversion, recurrence, scheduling, request, network, storage or persistence action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.