Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

Standing Calendar, animated React component

  • Pro
  • Dashboards
  • 3D
  • Spring
  • Hover

A contribution grid that stands up into a 3D field of columns. Each day becomes a box as tall as its count, rising in a wave across the weeks; hover a day to read its value.

Props

PropTypeDefaultWhat it does
weeks30How many weeks of sample data to draw. Ignored when data is passed.
data—Your own counts: one array of 7 numbers (Mon to Sun) per week. Sample data is generated if left out.
levelsSTANDING_CALENDAR_LEVELSFive colours from no activity to busiest. The default empty colour follows light and dark mode.
autoplayfalseStands up and lies down on a loop until someone interacts.

Add it to your project

  1. 1

    Set up your project once

    You need a Next.js project with Tailwind CSS and the @/ import alias. In its root folder, run this once. It creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 2

    Connect the registry with your API key

    Standing Calendar is a Pro item, so the CLI has to send your API key. Do this once per project:

    1. Create a key at nexus-ui.com/dashboard/api-key. Copy it straight away: it starts with nxs_ and is shown only once.
    2. In your project root, next to package.json, create a file named .env.local with this line, using your own key:
      NEXUS_API_KEY=nxs_your_key_here
    3. Open components.json and add this entry inside the outermost braces, next to "aliases". Leave {name} and ${NEXUS_API_KEY} exactly as written; the CLI fills them in:
      "registries": {
        "@nexus-labs": {
          "url": "https://www.nexus-ui.com/api/registry/{name}",
          "headers": {
            "Authorization": "Bearer ${NEXUS_API_KEY}"
          }
        }
      }

How Standing Calendar works

A year-of-activity grid that stands up into a 3D field of columns. Each cell becomes a box (top, front and side faces) whose height is its count, and the columns rise in a wave from the first week to the last.

The source, the install command and the build prompt come with Pro.

Standing Calendar questions

How do I install Standing Calendar?

Run `npx shadcn@latest add @nexus-labs/standing-calendar`. It installs framer-motion. Standing Calendar is a Pro component, so it needs a Pro plan and an API key; key setup is on the CLI docs page (/docs/cli).

How do I pass my own data?

Pass `data` as `number[][]`: one array of 7 counts per week, Monday to Sunday. Without it the component generates sample data for `weeks` weeks (default 30). A standing column is `3 + count * 6` px tall.

How do counts map to colors?

`levels` takes five colors. A count of 0 uses the first, 1 to 2 the second, 3 to 5 the third, 6 to 8 the fourth and 9 or more the fifth. The default first color follows light and dark mode.

How do I switch between flat and standing?

It starts flat, with Flat and Standing toggle buttons below the grid. There is no prop to start standing. `autoplay` (default `false`) stands up and lies down on a loop until someone interacts.

How does hover work?

Hovering a day turns its top orange and shows "Week n, Day: value" above the grid, next to the total count. Hover uses pointer events only, so there is no keyboard equivalent for reading a day.