Data Grid

Selection Summary

A grid whose totals row counts only the ticked rows, with the fold — sum, average, minimum or maximum — chosen by the reader.

What you can change

  • the line under the toolbar through caption
  • the initial fold through aggregate: sum, avg, min or max
  • the panel heading through heading and the picker caption through pickerText

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

Preview

1440pxHost theme

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.ru/c/datagrid-016?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…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

The component is self-contained: one file, no dependencies, the palette in --vibeui-datagrid-016-*. A client component: useState holds the list of ticked ids and the chosen fold function. The total lives in the tfoot and changes its label together with the function — "Total" above an average would be a lie. A row checkbox carries its own aria-label with the name of the campaign, and the totals heading is declared aria-live, so a change of selection is heard. A selected row is marked both by a fill and by a stripe on the left through an inset box-shadow. On an empty selection the numeric cells hold a dash rather than a zero: a zero reads as a computed result. The theme comes from the surrounding color-scheme through light-dark(): by default the grid lays no panel under itself, it sits directly on the page background and darkens along with it. The aggregate prop sets the starting fold and keeps acting after mounting: the reader's choice is stored alongside the prop rather than instead of it.

Tags

  • datagrid
  • selection
  • aggregation
  • table
Component source

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

Loading…