For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A list of draggable label rows with one inline form to add or rename a label from 12 color swatches or a custom hex
When to use
- Admin tables whose values are typed into cells or rows, validated, then saved or discarded
- Spreadsheet work over long lists: cell ranges, paste, drag to fill and undo
- Small catalogs such as labels or pricing plans, where one record is edited and saved at a time
When not to use
- Rows that only need drag handles, with no color picker, add form or delete confirmation: use the Sortable component
- Many records shown as table columns with sorting, filters and paging: use the Base blocks
- Cell editing added to a table you already build from parts in your own layout: use the Data Grid component
Agent notes
LABEL_RECORDSseeds the labels thatLabelsViewkeeps inuseState; add, rename, delete and reorder never reach a serverhandleSubmitLabelsilently rejects a duplicate title by returning false; show an error and call your API therehandleReorderrestampsdisplayOrderafterSortablehands back the new order; save that field from it- Every page.tsx renders an sr-only
h1inside a centeredmin-h-svhmain; remove that wrapper when the view sits in your own page - Rows start from a data file constant held in
useStateoruseReducer, and nothing reaches a server; call your API where each edit or save commits
Third-party API docs
- React Hook Form v7: API reference, docs
- React Hook Form resolvers v5: API reference, docs
- Zod v4: API reference, docs
- dnd kit v6: API reference, docs, through ReUI Sortable (these are the Legacy docs; dndkit.com's default docs cover the newer @dnd-kit/react, a different API)
https://web.dev.reui.io/blocks/data-grid/editing/data-grid-editing-1.mdget_block("data-grid-editing-1")npx shadcn@latest add @reui/data-grid-editing-1Shadcn Components in the Label Manager Block
Dependencies
- @hookform/resolvers
- cn
- react-hook-form
- zod
Shadcn Label Manager Block
Labels manager list with inline create and edit form, color picker, and drag-to-reorder rows. Part of the ReUI Shadcn Data Grid Editing blocks collection.
Manage project labels in a sortable list: inline add and edit form with hex color picker Popover, drag-to-reorder rows, and delete confirmation. Uses ReUI Sortable plus shadcn Item, Input, Field, AlertDialog, Empty. For label, tag, and taxonomy UIs.
It is composed from Alert Dialog, Button, Empty, Field, Icon Stack, Input, Item, Popover, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Label Manager Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Data Grid Editing blocks to assemble a full screen instead of a single section.
All Shadcn Data Grid Editing Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Product Inventory Inline-editable product inventory data grid with per-cell validation and a dirty-state save bar
- Project Intake Inline-editable project intake data grid with dirty-state Save and Discard bar
- Pricing Plan Editor Pricing Plan Editor With Per-Row Edit Mode and Inline Validation
- Task Spreadsheet Spreadsheet Task Grid With Cell Range Editing, Custom Cell Controls, and Undo
- Stock Reorder Plan Spreadsheet Reorder Plan With On-Demand Column Filter Row and Summary Footer
Related Shadcn Data Grid Block Categories
- Base (8) Complete table screens with toolbar filters and pagination for CRM, support, team, project, and pricing data.
- Advanced (8) Analytics grids with in-cell charts, KPI rollups, a tree view and an SLO chart, plus a review queue, a stock mix sheet, a pro forma and a visit planner.
- Columns (5) Column visibility, pinning, resizing, density, and settings controls.
- Drag & Drop (4) Drag-and-drop row and column reordering with sortable handles.
- Expansion (3) Expandable parent rows with nested sub-rows and master-detail panels.
- Filtering (4) Search, faceted filters, filter builders, and status tab toolbars.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Label Manager block?
Use it for a list of draggable label rows with one inline form to add or rename a label from 12 color swatches or a custom hex.
The Editing category fits:
- Admin tables whose values are typed into cells or rows, validated, then saved or discarded
- Spreadsheet work over long lists: cell ranges, paste, drag to fill and undo
- Small catalogs such as labels or pricing plans, where one record is edited and saved at a time
For rows that only need drag handles, with no color picker, add form or delete confirmation, use the Sortable component. For many records shown as table columns with sorting, filters and paging, use the Base blocks. For cell editing added to a table you already build from parts in your own layout, use the Data Grid component.
What is the Label Manager block built with?
Can I restyle the Label Manager block?
How should I use Shadcn editing blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.