Buttons
Use buttons to help users to carry out an action.
How to use
We use the NHS design system button with a modifier class of nhsapp-button
to make buttons full width on smaller screens.
Primary button
To use the component in your design, add the NHS App Figma library to your working files, and navigate using the components tab.
To use the component in your Vue application, install the NHS App Vue Component Library and import the component.
Secondary button
To use the component in your design, add the NHS App Figma library to your working files, and navigate using the components tab.
To use the component in your Vue application, install the NHS App Vue Component Library and import the component.
Buttons on dark backgrounds (reverse button)
To use the component in your design, add the NHS App Figma library to your working files, and navigate using the components tab.
To use the component in your Vue application, install the NHS App Vue Component Library and import the component.
Warning button
Grouping buttons
Use a button group when two or more buttons are placed together.
To use the component in your design, add the NHS App Figma library to your working files, and navigate using the components tab.
To use the component in your Vue application, install the NHS App Vue Component Library and import the component.
Any links within a button group will automatically align with the buttons.
To use the component in your design, add the NHS App Figma library to your working files, and navigate using the components tab.
To use the component in your Vue application, install the NHS App Vue Component Library and import the component.
Research
Testing on the NHS App has found that full width buttons are not a problem for users with smaller screens. But we will continue to test if:
- full width buttons are problematic for users with low digital skills
- users don’t actually see them as actionable things to click
Help improve this component
The NHS App design system team would like to hear:
- how you have used this component in your service
- any feedback you have about its usage, for example accessibility or ideas for improvement
Add these comments to the 'Buttons' discussion on GitHub.