# Form Field Array

Invoice lines with quantity, unit price and tax.

- id: `form-field-array`
- Page: https://agentic-ui-kit.com/components/form-field-array
- Live preview: https://agentic-ui-kit.com/live/component/form-field-array

## Install

```bash
agentic-ui add form-field-array
npx shadcn@4.17.0 add @agentic-ui/form-field-array
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** repeatable-rows, add-remove-rows, row-reordering, per-row-validation, row-count-limits, computed-row-total, computed-grand-total, error-summary, empty-state, keyboard-navigation
- **Intents:** create-edit
- **Suits domains:** billing, ecommerce, hr, saas, finance
- **Interaction:** add-row, remove-row, reorder, type, validation-feedback, keyboard-navigation, submit
- **Screen role:** detail
- **Density:** compact
- **Dark mode:** yes
- **Use it for:** invoice lines with quantity, unit price and tax, order items with SKU and price, hiring plan with role, department and FTE, expense report line items
- **Avoid when:** a single repeated value without column structure, where a tags input is enough, large collections that require pagination or incremental loading
- **Preserve when adapting:** field-array-identity, validation-model, row-count-limits, total-computation
- **Replace when adapting:** domain-copy, columns, validation-messages, currency
- **Adaptation effort:** low
- **Coupling:** low
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** button, input, label
- **npm dependencies:** react-hook-form
- **npm dependencies (registry):** lucide-react@0.577.0, react-hook-form@7.72.0
- **Registry dependencies:** lib-primitives
