Data Grid
Filter Builder
A grid with a condition builder: field, operator and value on every line, one and/or joiner for the whole set and a live count of matching rows.
What you can change
- the line under the toolbar through caption
- the initial joiner through joiner: and or or
- the starting condition set through defaultRules
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-019?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-019-*. A client component: useState holds the array of conditions and the joiner; changing the field resets the operator and the value, because numbers and text take different operator sets. The builder is collected in a fieldset with a legend — for a screen reader this is one group rather than a scatter of fields; the legend carries float:left with width:100%, so the condition rows get clear:both. The joiner is shown as a separate line between the conditions and is not built into them: otherwise "and" reads as part of the neighbouring condition. Every field has its own aria-label with the number of the condition, and the counter of matches is declared role=status. 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 joiner and defaultRules props keep acting after mounting: the reader's edits are stored alongside them rather than instead of them.
Tags
- datagrid
- filters
- query-builder
- table
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…