Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

TimelineView

Open .md
Live preview

Loading example…

TimelineView is part of the Calendar set, imported from @jcsoftdev/ui/calendar.

import { TimelineView } from "@jcsoftdev/ui/calendar";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/calendar/timeline-view.

<TimelineView
today="2026-10-08"
events={events}
markers={markers}
hiddenDates={["2026-10-11"]}
locale="es-PE"
todayLabel="hoy"
emptyLabel="Sin citas"
/>
Prop Type Default Description
today * string “YYYY-MM-DD” date highlighted as today; the view never computes it.
events * CalendarEvent[]
markers CalendarMarker[] []
hiddenDates string[] [] Dates (“YYYY-MM-DD”) hidden from the timeline unless they are today.
locale string BCP 47 locale for date labels. Defaults to the runtime locale.
todayLabel * string Suffix marking today’s group, e.g. “today”.
emptyLabel * string Text shown for a day without events or markers.
onOpenEvent ((id: string) => void)
onOpenMarker ((id: string) => void)
className string
classNames Partial<Record<TimelineViewPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.

* marks a required prop.

packages/ui/src/calendar/timeline-view/timeline-view.tsx