Skip to
Keyboard shortcuts

Use the up and down arrow keys to move between items. Press Alt+Shift+K to open this list again.

Alpha version out now. The API may still change.

Content

15 components and hooks. Each page shows an example, the keyboard contract and the API.

  • Accordion

    A list of questions or sections, each with a heading and a button that opens its answer.

  • Address

    Contact details for the page or the article around it, as the native address element.

  • Alert

    A status message in the content: something people need to know now, or the result of what they just did.

  • Badge

    A short status or category in words, such as “Granted” or “Draft”, drawn as a pill.

  • Card

    A container for one thing on the page, such as a service, a news item or a case.

  • CodeBlock

    A code sample or a command with a label and a copy button.

  • Disclosure

    A button that shows and hides one panel of content, such as the opening hours or a longer explanation.

  • Divider

    A line that marks where one topic ends and the next begins.

  • Heading

    A heading with its element as a required prop and its look as an optional one.

  • Icon

    A small drawing that supports the text next to it.

  • Kbd

    A key name in running text, drawn as a key.

  • List

    A short list of links or items, with or without bullets or numbers, as the native list.

  • Progress

    Says that something is working and, when it is known, how far along.

  • Prose

    Styles for text you don't control, with inset text, steps and figures.

  • VisuallyHidden

    Text that screen reader users get and nobody sees.