Skip to main content
Styles

List

Use lists to make blocks of text easier to read, and to break information into manageable chunks.

Read the Design System guidance for list

Import

import { List } from 'govuk-react/list';

Examples

Default

Code
<List>
  {items}
</List>

Bulleted

Code
<List variant="bullet">
  {items}
</List>

Numbered

Code
<List variant="number">
  {items}
</List>

Spaced

Code
<List
  variant="bullet"
  spaced
>
  {items}
</List>

Nested

Code
<List variant="bullet">
  {(
    <>
      <li>
        first item
        <List variant="bullet">
          <li>nested item</li>
        </List>
      </li>
      <li>second item</li>
    </>
  )}
</List>

API reference

List

Use lists to make blocks of text easier to read, and to break information into manageable chunks.

PropType
variant"number" | "bullet"
spacedboolean
marginBottomSpacing