Data Grid

Detail Row

A grid where a row opens its details right underneath: a full-width panel, with the button-to-panel link declared through aria-controls.

What you can change

  • the line under the toolbar through caption
  • the one-row-at-a-time mode through single
  • the shipments and term-value pairs through rows

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-008?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-008-*. A client component: useState holds the list of expanded rows, and useId gives stable panel ids for aria-controls. The disclosure button carries aria-expanded and its own aria-label with the name of the shipment. The details lie in a separate row with a colSpan across the full width — a nested table would break cell navigation. The term-value pairs are collected in a dl, and the wrapper of a pair gets display:contents, otherwise the columns drift apart. The panel appears smoothly through @starting-style: where it is unsupported the panel simply appears at once. The single mode keeps one row open at a time. The theme comes from the surrounding color-scheme through light-dark(): by default the grid lays no panel under itself, it sits on the page background, while the background prop switches on a panel of its own.

Tags

  • datagrid
  • expandable
  • details
  • table
Component source

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

Loading…