APIDemo

Object

An object field groups multiple fields together. The fields are defined using the type function.

object('My object field', {
  fields: type('Object fields', {
    fieldA: text('A'),
    fieldB: text('B')
  })
})