Data Grid
Paste Rows
A grid that pastes several rows from the clipboard: the text is parsed by separators, broken lines are named with their number and reason, and only whole rows reach the table.
What you can change
- the line under the toolbar through caption
- the line format description through separatorHint and the starting field text through sample
- the field label through pasteLabel and the rejection reasons through problemText
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-023?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-023-*. A client component: useState holds the table, the pasted text and the list of just-added identifiers; useId ties the field to its label. The parser cuts the text on line breaks and the fields on a tab, a semicolon or two consecutive spaces: that way both a paste from a spreadsheet and text from an email survive. Broken lines are not dropped in silence but shown in the body of the table with their number and reason — otherwise half the paste disappears unnoticed. The added rows are marked with a fill until the next paste. The parse report 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 rows and sample props keep acting after mounting: what was added and typed is stored alongside them rather than instead of them.
Tags
- datagrid
- paste
- import
- table
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…