Android Buttons
Buttons are used to help users carry out an action.

How it works
There are 6 styles:
The reverse styles are for use on dark backgrounds, such as the NHS blue.
Follow the NHS design system button guidance for when to use primary, secondary and warning buttons.
Buttons are built on Material 3 buttons. They use the bold labelLarge text style, and are sized to their label by default. Use a Modifier such as fillMaxWidth() to make a button fill the width of its container.
When pressed, buttons scale down slightly and give haptic feedback.
How to use
Use the NHS…Button composables from the NHS App design system. Each takes a text label and an onClick function.
Primary button

A filled green button with white text.
Secondary button

A button with a blue label and a 2dp blue outline.
Warning button

Use it sparingly, only for destructive actions.
Tertiary button

A low-emphasis text button with blue text and no outline or background. It has no horizontal padding, so it sits flush with surrounding content, but it keeps a touch target of at least 48dp.
Reverse button

Use this on a dark background, such as the NHS blue:
Outlined reverse button

A button with a white outline and white text, for use on a dark background. Use it for a lower-emphasis action, for example next to a standard reverse button:
Full width

Pass a modifier to make a button fill the available width:
With an icon
![]()
Pass an ImageVector as icon to show an 18dp icon before the label. Icons are decorative, so the label should describe the action.
Icon only buttons
![]()
For actions represented only by an icon, use one of 4 icon button styles. These require a contentDescription so the button has an accessible name.
NHSIconButtonis a plain icon with no backgroundNHSFilledIconButtonis an icon on a filled green circleNHSOutlinedIconButtonis an icon in an outlined circleNHSReverseIconButtonis an icon on a white circle, for blue backgrounds
Grouped buttons

Place buttons side by side in a Row, or stacked in a Column:
Accessibility
Button labels should describe the action and make sense out of context. Wrapping text is supported, so labels are not truncated when the font size is increased.
Icon-only buttons must have a contentDescription for TalkBack.