PRO

Calendar Pad Cards

Contribution-graph style cards where the coloured squares are the navigation. Each card lays out five rows of pads, the first and last rows are decorative, and as many of the middle pads as there are entries are picked at random, coloured, and made clickable. Opening one does not slide a panel in: the pad itself is scaled twenty times until it fills the card, which is why the detail view arrives in the accent colour of the square you pressed. The content then springs in on an elastic ease with each block entering from a random tilt, and closing runs the whole thing backwards before clearing the props.

Component
Install
npx shadcn@latest add https://ui.aryank.space/r/calendar-pad-cards.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
monthsCalendarPadMonth[]4 BLANK monthsOne card per month. The number of entries sets how many pads light up, so a month with one entry gets one square.
activeColorsstring[]4 accentsSampled per pad, so a card usually shows several colours.
brand / navItemsstring / string[]BLANK copyNavigation row above the cards.
Customize
activeColorstext

Palette drawn from for the clickable pads.

backLabeltext

Label on the close button.

Dependencies
gsap