Genesis
@beta

PrintableAgenda

One sheet per lane for the week holding `anchor`, each on its own printed page. On screen the sheets stack, so a page can show them before printing. Events that name no lane are left out: a sheet is someone's.

packages/ui/src/components/data/calendar/PrintableAgenda.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { PrintableAgenda } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

PrintableAgenda

One sheet per lane for the week holding `anchor`, each on its own printed page. On screen the sheets stack, so a page can show them before printing. Events that name no lane are left out: a sheet is someone's.

PropTypeDefaultDescription
events*readonly CalendarEvent<T>[]—
lanes*readonly CalendarLane[]—The sheets, in order: exactly these lanes, each titled by its `label`. Required: a lane's key is an id, never a title for a printed page.
anchorstring—A day in the week printed (default today).
classNamestring—
headingLevelenum3The level of each sheet's heading (the lane's name); its days are one below. Default 3.
localestring—BCP 47 locale for dates and times. Default the runtime's.
sectionsreadonly PrintableSection[][]Under each lane's week.
showEmptyDaysbooleantrueThe sheets show days with nothing on them too. Default true: a printed week has every day.
testIDstringprintable-agenda
timeZonestring—The clock days are counted on. Default the device's.
titleReactNode—Over each sheet, before the lane's name.
weekStartsOnenum10 Sunday or 1 Monday (default).

PrintButton

Prints the page (the browser's print dialog). Hidden on the printed page itself.

PropTypeDefaultDescription
classNamestring—
labelstring—The button's words. Default the catalogue's `calendar.print`.
Storybook
Storybook hosts the canonical visual reference with controls for every variant.