List
Display a GOV.UK-styled list sourced from a named list definition.
Preview
What you need to do
- Option 1
- Option 2
- Option 3
JSON definition
{ "type": "List", "name": "fieldName", "title": "Question title", "hint": "", "list": "", "options": {}}Properties
| Property | Type | Required | Description |
|---|---|---|---|
hint | string | No | Hint text displayed below the field label to help the user answer the question. |
list | string | Yes | Name of a list definition that provides the options to display. See list schema for the list definition format. |
Options
| Property | Type | Required | Description |
|---|---|---|---|
bold | boolean | No | When true, displays option labels in bold. |
classes | string | No | Additional CSS classes applied to the component. |
hideTitle | boolean | No | When true, hides the component or section title. |
type | string | No | Display style for the list: 'bulleted' or 'numbered'. |