List

    A list field contains blocks of fields. Every block is configured using a specific type. These can be created using the schema and type functions as seen before.

    import alinea from 'alinea'
    
    alinea.list('My list field', {
      schema: alinea.schema({
        Text: alinea.type('Text', {
          title: alinea.text('Item title'),
          text: alinea.richText('Item body text')
        }),
        Image: alinea.type('Image', {
          image: alinea.image('Image')
        })
      })
    })