Form Field Array
Invoice lines with quantity, unit price and tax.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Invoice lines with quantity, unit price and tax.
- Order items with SKU and price.
- Hiring plan with role, department and FTE.
Includes
- Repeatable rows
- Add remove rows
- Row reordering
- Per row validation
- Row count limits
- Computed row total
- Computed grand total
- Error summary
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add form-field-arrayInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/form-field-arrayUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-reactreact-hook-form- Registry dependencies
lib-primitives- Files
4 files
- components/agentic-ui/form-field-array/form-field-array.tsx
- components/agentic-ui/form-field-array/types.ts
- components/agentic-ui/form-field-array/field-array-state.ts
- components/agentic-ui/form-field-array/field-array-row.tsx
Related components
Form Async Combobox
Multiple assignment of reviewers with avatars, roles and teams in issue management.
Details and live previewForm Date Range Picker
Filter conversion and traffic metrics in analytics panels.
Details and live previewForm File Upload
Attach a CV and degree to an HR job application.
Details and live previewForm Inline Edit
CRM contact record where each field is edited in place.
Details and live preview