object

type ObjectField = {
  label: string
  name: string
  type: 'object'
  /** `fields OR `templates` may be provided, not both **/
  fields?: Field[]
  templates?: Template[]
  /** See docs/reference/toolkit/fields for customizing the UI **/
  ui?: object
}

As a list

Note: you can set defaultItem to auto-populate new items as they're added

With multiple templates

If you always want your object to have the same fields, use the fields property. But if an object can be one of any different shape, define them as templates.

Last Edited: July 27, 2021