FieldArray

Primitive #56

🔍 Problem it solves

Dynamic forms need to add/remove groups of fields (e.g., multiple phone numbers, address list, product variants). Managing array state manually is error‑prone (indexes, reordering).

✅ Solution

FieldArray manages an array of fields, providing add, remove, insert, move operations, and subscriptions for UI updates. This demo shows a list of phone numbers with add, remove, and reorder buttons.

🧩 Used by components

DynamicForm, PhoneNumberList, AddressList, ProductVariants, TodoList

🎮 Interactive demo