How to use components

Components are reusable parts of the user interface, like buttons, text inputs and checkboxes.

Add a component

The prototype kit has 2 ways to use components. You can either use HTML or a Nunjucks macro.

You can copy the HTML or Nunjucks code from each of the components pages on the components section of the service manual.

Explore the NHS.UK digital service manual for code snippets and guidance on how to use components.