Data Grid
Row Actions Menu
A grid with an actions column: five commands live in a menu that walks with the arrows, closes on Escape returning focus, and keeps deletion behind a divider.
What you can change
- the line under the toolbar through caption
- the menu button caption through triggerLabel
- the panel heading through heading and the idle status line through emptyLogText
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/datagrid-028?lang=en&theme=dark
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-028-*. A client component: useState holds the identifier of the open row, a ref holds the trigger buttons, and useId gives stable panel ids for aria-controls. The menu is built on the keyboard model: the down arrow on the button opens it, the arrows walk the items, Home and End jump to the ends, and Escape closes it and returns focus to the button — without that return the focus flies to the top of the page. The markup is honest: a list with role=menu and buttons with role=menuitem. The destructive item is separated by a line and marked with a colour together with the word "Delete": colour alone is not a warning. The theme comes from the surrounding color-scheme through light-dark(): by default the table lays no panel under itself, it sits directly on the page background and darkens along with it, and the opaque background is left on the menu — a popup layer has to cover the rows.
Tags
- datagrid
- menu
- row-actions
- table
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…