Reference
Dynamic Input
A column of entry rows: one Input per line, each with a quiet remove seal, and an add row at the tail. The list is controlled — every edit emits a fresh array and the parent's array stays the only truth. Deleting never drops below `min`, adding never grows past `max`, and the group always keeps one row: an entry list that emptied itself would leave the reader no place to type.
Add · Root · Row
#DynamicInput
A column of entry rows: one Input per line, each with a quiet remove
seal, and an add row at the tail. The list is controlled — every edit
emits a fresh array and the parent's array stays the only truth.
Deleting never drops below min, adding never grows past max, and
the group always keeps one row: an entry list that emptied itself
would leave the reader no place to type.
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | Array as PropType<string[]> | () => [""] | The rows' values; the group renders one Input per entry. |
min | Number | 0 | The fewest rows the group keeps; the remove seals yield first. |
max | Number | undefined | The most rows the group grows to; the add control yields then. |
placeholder | String | undefined | — |
addLabel | String | "Add entry" | The add control's visible words. |
disabled | Boolean | false | — |
invalid | Boolean | false | — |
size | String as PropType<"sm" | "md" | "lg"> | "md" | One rung of the ladder, handed to every row's field and seals. |