Object

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

import {alinea} from 'alinea'
alinea.object('Address', {
  fields: alinea.type('Object fields', {
    street: alinea.text('Street'),
    zip: alinea.text('Zip code', {width: 0.5}),
    city: alinea.text('City', {width: 0.5})
  })
})