ObjectUIObjectUI
ComponentsData Display

List

Display a list of items

Examples

Basic List

  • Item 1
  • Item 2
  • Item 3
{
  "type": "list",
  "items": [
    {
      "type": "text",
      "content": "Item 1"
    },
    {
      "type": "text",
      "content": "Item 2"
    },
    {
      "type": "text",
      "content": "Item 3"
    }
  ]
}

Schema

interface ListSchema {
  type: 'list';
  items: SchemaNode[];
  ordered?: boolean;
  className?: string;
}

On this page