Inputs

List

Renderless Input

The list input does not render any output to the DOM. It is used exclusively for structuring data in your form. It is equivalent to an array in JavaScript.

The list input allows you to structure data from child inputs as an array. The list itself outputs no markup (by default) and can be used in conjunction with any other type of input — including nested groups and lists.

The value of a list input is an array where each item is the value of the input at that index. Sub-inputs do not need to be of the same type. In addition to structuring data, lists can determine the validation state, provide initial values, and supply plugins and configuration to all of its children.

Basic example

<FormKit modelValue={list} onUpdateModelValue={setList} type="list">  <p className="text-base mb-4">Please provide a list of emails.</p>  <FormKit label="Email address" validation="required|email" />  <FormKit label="Email address" validation="required|email" />  <FormKit label="Email address" validation="required|email" /></FormKit><pre>{JSON.stringify(list, null, 2)}</pre>

Please provide a list of emails.

[
  "[email protected]",
  "[email protected]",
  "[email protected]"
]
Performance

FormKit supports modelValue and onUpdateModelValue even on lists and groups. However, if your form needs extremely high performance, consider using the core node to read and write values instead of keeping every change in bound component state.

List types

There are 2 flavors of lists:

  • Static lists (default) have pre-determined children. They should not be used for iterating over values or adding/removing items.
  • Dynamic lists allow iteration over the list’s value to create its children. They are useful for creating dynamic-length lists like repeaters.

Static lists

Static lists are the simplest type of list to create. Wrap any inputs in a <FormKit type="list"> and those inputs will automatically be set as values of their array. Immediate children of lists do not have a name (even if specified) instead they are always identified by their index. In a static list, this index is stable and is based on the order of the inputs.

list-static
nba-top-players
<h2 className="text-2xl font-bold mb-4">NBA All Time Starting Five</h2><FormKit type="list">  {({ value }) => (    <>      <FormKit        label="Point Guard"        type="autocomplete"        placeholder="Select a player"        options={nbaTopPlayers}      />      <FormKit        label="Shooting Guard"        type="autocomplete"        placeholder="Select a player"        options={nbaTopPlayers}      />      <FormKit        label="Small Forward"        type="autocomplete"        placeholder="Select a player"        options={nbaTopPlayers}      />      <FormKit        label="Power Forward"        type="autocomplete"        placeholder="Select a player"        options={nbaTopPlayers}      />      <FormKit        label="Center"        type="autocomplete"        placeholder="Select a player"        options={nbaTopPlayers}      />      <pre>{JSON.stringify(value, null, 2)}</pre>    </>  )}</FormKit>
export const nbaTopPlayers = [  {    "value": "0",    "label": "Kareem Abdul-Jabbar",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kareem-abdul-jabbar.jpg"  },  {    "value": "1",    "label": "Ray Allen",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/ray-allen.jpg"  },  {    "value": "2",    "label": "Giannis Antetokounmpo",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/giannis-antetokounmpo.jpg"  },  {    "value": "3",    "label": "Carmelo Anthony",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/carmelo-anthony.jpg"  },  {    "value": "4",    "label": "Tiny Archibald",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/tiny-archibald.jpg"  },  {    "value": "5",    "label": "Paul Arizin",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/paul-arizin.jpg"  },  {    "value": "6",    "label": "Charles Barkley",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/charles-barkley.jpg"  },  {    "value": "7",    "label": "Rick Barry",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/rick-barry.jpg"  },  {    "value": "8",    "label": "Elgin Baylor",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/elgin-baylor.jpg"  },  {    "value": "9",    "label": "Dave Bing",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dave-bing.jpg"  },  {    "value": "10",    "label": "Larry Bird",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/larry-bird.jpg"  },  {    "value": "11",    "label": "Kobe Bryant",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kobe-bryant.jpg"  },  {    "value": "12",    "label": "Wilt Chamberlain",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/wilt-chamberlain.jpg"  },  {    "value": "13",    "label": "Bob Cousy",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bob-cousy.jpg"  },  {    "value": "14",    "label": "Dave Cowens",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dave-cowens.jpg"  },  {    "value": "15",    "label": "Billy Cunningham",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/billy-cunningham.jpg"  },  {    "value": "16",    "label": "Stephen Curry",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/stephen-curry.jpg"  },  {    "value": "17",    "label": "Anthony Davis",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/anthony-davis.jpg"  },  {    "value": "18",    "label": "Dave DeBusschere",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dave-debusschere.jpg"  },  {    "value": "19",    "label": "Clyde Drexler",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/clyde-drexler.jpg"  },  {    "value": "20",    "label": "Tim Duncan",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/tim-duncan.jpg"  },  {    "value": "21",    "label": "Kevin Durant",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kevin-durant.jpg"  },  {    "value": "22",    "label": "Julius Erving",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/julius-erving.jpg"  },  {    "value": "23",    "label": "Patrick Ewing",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/patrick-ewing.jpg"  },  {    "value": "24",    "label": "Walt Frazier",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/walt-frazier.jpg"  },  {    "value": "25",    "label": "Kevin Garnett",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kevin-garnett.jpg"  },  {    "value": "26",    "label": "George Gervin",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/george-gervin.jpg"  },  {    "value": "27",    "label": "Hal Greer",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/hal-greer.jpg"  },  {    "value": "28",    "label": "James Harden",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/james-harden.jpg"  },  {    "value": "29",    "label": "John Havlicek",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/john-havlicek.jpg"  },  {    "value": "30",    "label": "Elvin Hayes",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/elvin-hayes.jpg"  },  {    "value": "31",    "label": "Lebron James",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/lebron-james.jpg"  },  {    "value": "32",    "label": "Magic Johnson",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/magic-johnson.jpg"  },  {    "value": "33",    "label": "Sam Jones",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/sam-jones.jpg"  },  {    "value": "34",    "label": "Michael Jordan",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/michael-jordan.jpg"  },  {    "value": "35",    "label": "Jason Kidd",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/jason-kidd.jpg"  },  {    "value": "36",    "label": "Allen Iverson",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/allen-iverson.jpg"  },  {    "value": "37",    "label": "Kawhi Leonard",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kawhi-leonard.jpg"  },  {    "value": "38",    "label": "Damian Lillard",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/damian-lillard.jpg"  },  {    "value": "39",    "label": "Jerry Lucas",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/jerry-lucas.jpg"  },  {    "value": "40",    "label": "Karl Malone",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/karl-malone.jpg"  },  {    "value": "41",    "label": "Moses Malone",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/moses-malone.jpg"  },  {    "value": "42",    "label": "Pete Maravich",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/pete-maravich.jpg"  },  {    "value": "43",    "label": "Bob McAdoo",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bob-mcadoo.jpg"  },  {    "value": "44",    "label": "Kevin McHale",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/kevin-mchale.jpg"  },  {    "value": "45",    "label": "George Mikan",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/george-mikan.jpg"  },  {    "value": "46",    "label": "Reggie Miller",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/reggie-miller.jpg"  },  {    "value": "47",    "label": "Earl Monroe",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/earl-monroe.jpg"  },  {    "value": "48",    "label": "Steve Nash",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/steve-nash.jpg"  },  {    "value": "49",    "label": "Dirk Nowitzki",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dirk-nowitzki.jpg"  },  {    "value": "50",    "label": "Shaquille O'Neal",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/shaquille-oneal.jpg"  },  {    "value": "51",    "label": "Hakeem Olajuwon",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/hakeem-olajuwon.jpg"  },  {    "value": "52",    "label": "Robert Parish",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/robert-parish.jpg"  },  {    "value": "53",    "label": "Chris Paul",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/chris-paul.jpg"  },  {    "value": "54",    "label": "Gary Payton",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/gary-payton.jpg"  },  {    "value": "55",    "label": "Bob Pettit",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bob-pettit.jpg"  },  {    "value": "56",    "label": "Paul Pierce",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/paul-pierce.jpg"  },  {    "value": "57",    "label": "Scottie Pippen",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/scottie-pippen.jpg"  },  {    "value": "58",    "label": "Willis Reed",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/willis-reed.jpg"  },  {    "value": "59",    "label": "Oscar Robertson",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/oscar-robertson.jpg"  },  {    "value": "60",    "label": "David Robinson",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/david-robinson.jpg"  },  {    "value": "61",    "label": "Dennis Rodman",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dennis-rodman.jpg"  },  {    "value": "62",    "label": "Bill Russell",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bill-russell.jpg"  },  {    "value": "63",    "label": "Dolph Schayes",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dolph-schayes.jpg"  },  {    "value": "64",    "label": "Bill Sharman",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bill-sharman.jpg"  },  {    "value": "65",    "label": "John Stockton",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/john-stockton.jpg"  },  {    "value": "66",    "label": "Isiah Thomas",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/isiah-thomas.jpg"  },  {    "value": "67",    "label": "Nate Thurmond",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/nate-thurmond.jpg"  },  {    "value": "68",    "label": "Wes Unseld",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/wes-unseld.jpg"  },  {    "value": "69",    "label": "Dwyane Wade",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dwyane-wade.jpg"  },  {    "value": "70",    "label": "Bill Walton",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/bill-walton.jpg"  },  {    "value": "71",    "label": "Jerry West",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/jerry-west.jpg"  },  {    "value": "72",    "label": "Russell Westbrook",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/russell-westbrook.jpg"  },  {    "value": "73",    "label": "Lenny Wilkens",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/lenny-wilkens.jpg"  },  {    "value": "74",    "label": "Dominique Wilkins",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/dominique-wilkins.jpg"  },  {    "value": "75",    "label": "James Worthy",    "img_url": "https://s3.amazonaws.com/cdn.formk.it/example-assets/nba-top-seventy-five/james-worthy.jpg"  }]

NBA All Time Starting Five

[]
Iterating over the list values

Static lists should not be used for iterating over their own value. While it is safe to iterate over other arbitrary data iterating over the value of the list itself will cause recursive rendering and infinite loops. Instead use a dynamic list.

Dynamic lists

Dynamic lists allow you to iterate over the values of the list to create and hydrate the inputs inside the list. Dynamic lists are useful for creating dynamic array structures like repeaters.

You can mutate the structure of your dynamic list by adding and removing items from the value array. FormKit will automatically update the underlying form structure to match the new value.

In order for dynamic lists to keep your data in sync, you must use items from the render-prop child function to render each row, and you must also pass the current index as the index prop to each child input in the list.

FormKit Pro Repeater

To use a prebuilt repeater, check out the free FormKit Pro repeater input.

Dynamic list example

<h2 className="text-2xl font-bold mb-4">Guest list</h2><FormKit type="list" value={['']} dynamic>  {({ items, node, value }) => (    <>      {items?.map((item, index) => (        <FormKit          key={`${item}-${index}`}          index={index}          label="Guest name"          placeholder="Guest name"          suffixIcon="trash"          onSuffixIconClick={() =>            node.input(              value.filter((_, itemIndex) => itemIndex !== index)            )          }          sectionsSchema={{            suffixIcon: {              $el: 'button',            },          }}        />      ))}      <FormKit type="button" onClick={() => node.input(value.concat(''))}>        + Add another      </FormKit>      <pre>{JSON.stringify(value, null, 2)}</pre>    </>  )}</FormKit>

Guest list

[
  ""
]

Dynamic list with a nested group

<h2>Guest list</h2><FormKit type="list" value={[{}]} dynamic>  {({ items, node, value }) => (    <>      {items?.map((item, index) => (        <FormKit key={`guest-${index}`} type="group" index={index}>          <div style={groupStyle}>            <FormKit              type="text"              name="name"              label="Guest name"              placeholder="Guest name"            />            <FormKit type="number" name="age" label="Guest age" />            <button              type="button"              onClick={() =>                node.input(                  value.filter((_, itemIndex) => itemIndex !== index)                )              }              style={removeStyle}            >              - Remove            </button>          </div>        </FormKit>      ))}      <button        type="button"        onClick={() => node.input(value.concat({}))}        style={addStyle}      >        + Add another      </button>      <pre>{JSON.stringify(value, null, 2)}</pre>    </>  )}</FormKit>

Guest list

[
  {}
]

Dynamic list using bound state

<h1>Todo list</h1><FormKit  modelValue={todos}  onUpdateModelValue={setTodos}  type="list"  dynamic  sync>  {({ items, value }) => (    <>      {items?.map((item, index) => (        <div key={`${item}-${index}`} style={todoStyle}>          <FormKit type="text" index={index} />          <ul style={controlsStyle}>            <li>              <button                type="button"                onClick={() => moveTodo(index, index - 1)}                style={buttonStyle}              >                <FormKitIcon icon="arrowUp" />              </button>            </li>            <li>              <button                type="button"                onClick={() => moveTodo(index, index + 1)}                style={buttonStyle}              >                <FormKitIcon icon="arrowDown" />              </button>            </li>            <li>              <button                type="button"                onClick={() =>                  setTodos((current) =>                    current.filter((_, todoIndex) => todoIndex !== index)                  )                }                style={closeStyle}              >                <FormKitIcon icon="close" />              </button>            </li>          </ul>        </div>      ))}      <FormKit        type="button"        onClick={() => setTodos((current) => current.concat(''))}      >        Add a todo      </FormKit>      <pre>{JSON.stringify(value, null, 2)}</pre>    </>  )}</FormKit>

Todo list

[
  "Buy groceries",
  "Do laundry",
  "Clean the bathroom",
  "Pay bills",
  "Call mom",
  "Go for a run"
]

Dynamic list in schema

const data = {  addItem: (node) => () => node.input(node._value.concat([''])),  stringify: JSON.stringify,}const schema = {  $formkit: 'form',  children: [    {      $formkit: 'list',      name: 'links',      value: [''],      dynamic: true,      children: [        {          $formkit: 'text',          for: ['item', 'index', '$items'],          key: '$item',          index: '$index',          label: 'Link',          validation: 'required|url',          validationVisibility: 'submit',        },        {          $formkit: 'button',          onClick: '$addItem($node)',          children: 'Add a link',        },      ],    },    {      $el: 'pre',      attrs: { wrap: true },      children: '$stringify($value)',    },  ],}export default function App() {  return <FormKitSchema schema={schema} data={data} library={{ FormKit }} />}
{}

Validity of children

Lists (and groups) are always aware of the validation state of their children (including nested children). You can access this data in the context object of the input (context.state.valid).

<FormKit name="social" type="list">  {({ state: { valid } }) => (    <>      <h2 className="text-2xl font-bold mb-2">Social media handles</h2>      <p className="text-base mb-4">        Please provide a your twitter and facebook social media profiles.      </p>      {!valid ? (        <div style={invalidStyle}>          Your social profile is not complete!        </div>      ) : (        <div style={validStyle}>{`It all looks good \u{1F44D}`}</div>      )}      <FormKit        label="Twitter handle"        placeholder="@your_profile"        validation="required|starts_with:@"        help="Enter your twitter profile handle"      />      <FormKit        label="Facebook profile"        placeholder="https://facebook.com/your-profile"        validation="required|starts_with:https://www.facebook.com/"        help="Enter the URL to your facebook profile."      />    </>  )}</FormKit>

Social media handles

Please provide a your twitter and facebook social media profiles.

It all looks good 👍
Enter your twitter profile handle
Enter the URL to your facebook profile.

Showing error & validation messages

Even though a list can have validation rules and input errors, it does not include any functionality to show validation messages and errors by default. The list ships no HTML at all. If you’d like to display those errors, you can add the <FormKitMessages /> component as a child of the list.

Configuration

Further documentation on the FormKitMessages component can be found on the form documentation page.

Props & Attributes

PropType Default Description
disabledBooleanfalseDisables all the inputs in the list.
dynamicBooleanfalseEnables dynamic mode for the list and provides items to the default slot or render-prop child function for iteration.
Show Universal props
configObject{}Configuration options to provide to the input’s node and any descendent node of this input.
delayNumber20Number of milliseconds to debounce an input’s value before the commit hook is dispatched.
dirtyBehaviorstringtouchedDetermines how the "dirty" flag of this input is set. Can be set to touched or comparetouched (the default) is more performant, but will not detect when the form is once again matching its initial state.
errorsArray[]Array of strings to show as error messages on this field.
helpString''Text for help text associated with the input.
idStringinput_{n}The unique id of the input. Providing an id also allows the input’s node to be globally accessed.
ignoreBooleanfalsePrevents an input from being included in any parent (group, list, form etc). Useful when using inputs for UI instead of actual values.
indexNumberundefinedAllows an input to be inserted at the given index if the parent is a list. If the input’s value is undefined, it inherits the value from that index position. If it has a value it inserts it into the lists’s values at the given index.
labelString''Text for the label element associated with the input.
nameStringinput_{n}The name of the input as identified in the data object. This should be unique within a group of fields.
parentFormKitNodecontextualBy default the parent is a wrapping group, list or form — but this props allows explicit assignment of the parent node.
prefix-iconString''Specifies an icon to put in the prefixIcon section.
preserveBooleanfalsePreserves the value of the input on a parent group, list, or form when the input unmounts.
preserve-errorsBooleanfalseBy default errors set on inputs using setErrors are automatically cleared on input, setting this prop to true maintains the error until it is explicitly cleared.
sections-schemaObject{}An object of section keys and schema partial values, where each schema partial is applied to the respective section.
suffix-iconString''Specifies an icon to put in the suffixIcon section.
typeStringtextThe type of input to render from the library.
validationString, Array[]The validation rules to be applied to the input.
validation-visibilityStringblurDetermines when to show an input's failing validation rules. Valid values are blur, dirty, and live.
validation-labelString{label prop}Determines what label to use in validation error messages, by default it uses the label prop if available, otherwise it uses the name prop.
validation-rulesObject{}Additional custom validation rules to make available to the validation prop.
valueAnyundefinedSeeds the initial value of an input and/or its children. Not reactive. Can seed entire groups (forms) and lists..

Sections

The list input renders no output to the DOM so there are no sections to display. The list input is a renderless input that is used exclusively for structuring data in your form. It is equivalent to an array in JavaScript.