Data Grid
Inline Cell Edit
A grid that edits a value in place: Enter commits, Escape restores the previous value, and changed cells stay marked until Save is pressed.
What you can change
- the line under the toolbar through caption
- the explanatory line in the bar through hint
- the price list content through rows
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-005?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-005-*. A client component: the base rows live in one piece of state and the edits as an overlay in another, so "Cancel" restores everything in a single action and "Save" moves the overlay into the base. A cell at rest is a button spanning the full width: only that way does editing open from the keyboard, which a div with onClick cannot do. The input field takes focus when it appears and carries an aria-label with the name of the column and of the row. Enter commits, Escape cancels, and losing focus saves. Changed cells are marked with a fill and a dot, and the counter of unsaved changes is declared aria-live. 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
- inline-edit
- form
- table
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…