Table

Unit Caption

A table whose heading is a real caption: it also explains the units, the rounding and the cut-off date, while each column's unit sits on its own line in the header.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • the columns, their units and expansions through columns
  • the outlets and their values through rows
  • the table heading through caption

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Unit Caption — A table whose heading is a real caption: it also explains the units, the rounding and the cut-off date, while each column's unit sits on its own line in the header.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/table-020?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Table020
  caption="Sales by outlet, August"
  note="Values are rounded to whole units, revenue is in thousands, net of VAT."
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Heading
caption · default: Sales by outlet, August
First column
leadTitle · default: Outlet
Note
note · default: Values are rounded to whole units, revenue is in thousands, net of VAT. Data as of 31 August, 23:59.
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Unit Caption with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Unit Caption depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Unit Caption?
Adapt: the columns, their units and expansions through columns; the outlets and their values through rows; the table heading through caption. Keep as installed: the local --vibeui-table-020-* palette — do not swap it for your theme tokens; the heading and the note inside caption: a paragraph above the table never becomes its name; caption-side:top: without it print moves the caption below, and the reading rules arrive after the data.
Is Unit Caption free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/table-020.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

The component is self-contained: one file, no dependencies, its palette in the --vibeui-table-020-* variables. A server component: no hooks. The heading and the note sit inside the caption, so a screen reader announces the reading rules before the first cell rather than after it — a paragraph above the table gives nothing of the kind. caption-side:top is set explicitly: in print browsers like to move the caption to the bottom. The unit of measurement is printed in the header on its own line, and the abbreviations are expanded through abbr with a title and a dotted underline that does not pretend to be a link. The numeric columns come with tabular-nums, and the values are right-aligned.

Tags

  • table
  • caption
  • units
  • report
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…