TidalUI

Calendar agenda preview

A controlled month calendar that becomes a usable agenda on narrow screens, with native date, navigation, and event actions.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/calendar-agenda

Import components/ui/tidal.css, components/ui/calendar-agenda.css. Wrap installed components in tidal-scope.

Preview

Calendar agenda component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/calendar-agenda.css";
import{TidalCalendarAgenda}from"./components/ui/calendar-agenda";
export default(p:Parameters<typeof TidalCalendarAgenda>[0])=><div className="tidal-scope"><TidalCalendarAgenda {...p}/></div>;

API and props

TidalCalendarAgenda.days (required)
ReadonlyArray<TidalCalendarDay>

Required days value accepted by this exported component.

TidalCalendarAgenda.next (required)
TidalCalendarNavigationAction

Required next value accepted by this exported component.

TidalCalendarAgenda.onDateSelect (required)
(day: TidalCalendarDay, event: ReactMouseEvent<HTMLButtonElement>) => void

Callback invoked when the date select interaction is proposed.

TidalCalendarAgenda.previous (required)
TidalCalendarNavigationAction

Required previous value accepted by this exported component.

TidalCalendarAgenda.title (required)
ReactNode

Required title value accepted by this exported component.

TidalCalendarAgenda.visibleMonthLabel (required)
ReactNode

Required visible month label value accepted by this exported component.

TidalCalendarAgenda.weekdays (required)
ReadonlyArray<TidalCalendarWeekday>

Required weekdays value accepted by this exported component.

TidalCalendarAgenda.description
ReactNode

Optional description value accepted by this exported component.

TidalCalendarAgenda.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalCalendarAgenda.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalCalendarAgenda.footer
ReactNode

Optional footer value accepted by this exported component.

TidalCalendarAgenda.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalCalendarAgenda.labels
Partial<TidalCalendarAgendaLabels> | undefined

Optional labels value accepted by this exported component.

TidalCalendarAgenda.selectedDate
string | undefined

Optional selected date value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas