Data Grid

Cell Validation

A grid that validates in place: the error sits under the value itself, the field carries aria-invalid and a link to the message, and saving is blocked until it is fixed.

What you can change

  • the line under the toolbar through caption
  • the upper bound on hours through maxHours
  • the error wording through errorText, where the hours key takes {max}

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-022?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-022-*. A client component: the values live in state, the validation is computed on every render, and useId gives stable identifiers for aria-describedby. A field with an error gets aria-invalid and a link to the error text — a red border alone tells a screen reader nothing. Under every cell a line the height of the message is reserved, so the appearance of an error does not move the neighbouring rows. The save button is switched off while errors remain, and their number is declared role=status. The cells are aligned to the top edge: otherwise a row with an error skews its neighbours. 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 rows prop keeps acting after mounting: the reader's edits are stored alongside it rather than instead of it.

Tags

  • datagrid
  • validation
  • inline-error
  • table
Component source

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

Loading…