Skip to content

Commit 5f9d42f

Browse files
NHS.UK React components v6.0.0 (#348)
* Update README examples * Bump version number for v6.0.0 release * Update changelog for v6.0.0 release
1 parent 668c7c7 commit 5f9d42f

File tree

3 files changed

+39
-50
lines changed

3 files changed

+39
-50
lines changed

CHANGELOG.md

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,42 @@
11
# NHS.UK React components
22

3-
## 6.0.0-beta.5 - 23 January 2026
3+
## 6.0.0 - 10 March 2026
44

5-
This version provides support for NHS.UK frontend v10.3 and includes:
5+
This version provides support for NHS.UK frontend v10.3.0
6+
7+
You can follow the [upgrade to 6.0 migration guide](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md) to see what's changed and what you need to update.
8+
9+
- React v19 with strict mode support
10+
- React server-side rendering (SSR) support
11+
- React server components (RSC) support
12+
- Forwarded refs from all form inputs
13+
14+
Features from NHS.UK frontend v10.3.0 include:
615

716
- [File upload component](https://service-manual.nhs.uk/design-system/components/file-upload)
817
- [Interruption panel variant](https://service-manual.nhs.uk/design-system/components/panel#interruption-panel)
918
- [Summary cards](https://service-manual.nhs.uk/design-system/components/summary-list#summary-cards)
1019

11-
With additional support added for NHS.UK frontend v10.2 including:
20+
Features from NHS.UK frontend v10.2.0 include:
1221

1322
- [Password input component](https://service-manual.nhs.uk/design-system/components/password-input)
1423
- [Smaller and inline buttons](https://service-manual.nhs.uk/design-system/components/buttons#smaller-buttons)
1524
- [Text input styles for codes and sequences](https://service-manual.nhs.uk/design-system/components/text-input#codes-and-sequences)
1625
- [Select](https://service-manual.nhs.uk/design-system/components/select) dividers using `<Select.Divider />`
1726

18-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
19-
20-
## 6.0.0-beta.4 - 5 November 2025
21-
22-
This version provides support for NHS.UK frontend v10.1 and includes:
23-
24-
- Support for HTML in legend, label and error props
25-
- Default legend and label to `isPageHeading: true` when `headingLevel` is set
26-
27-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
28-
29-
## 6.0.0-beta.3 - 27 October 2025
30-
31-
This version provides support for NHS.UK frontend v10.1 and includes:
27+
Features from NHS.UK frontend v10.1.0 include:
3228

3329
- [Smaller radios](https://service-manual.nhs.uk/design-system/components/radios#smaller-radios) and [smaller checkboxes](https://service-manual.nhs.uk/design-system/components/checkboxes#smaller-checkboxes)
3430
- [Numbered pagination](https://service-manual.nhs.uk/design-system/components/pagination#for-navigating-between-pages-of-items)
35-
- React strict mode support
36-
37-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
38-
39-
## 6.0.0-beta.2 - 13 October 2025
40-
41-
This version provides support for NHS.UK frontend v10.x, React Server Components (RSC) and fixes a Rollup `'use client'` directive issue.
42-
43-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
44-
45-
## 6.0.0-beta.1 - 8 October 2025
46-
47-
This version provides support for NHS.UK frontend v10.x and adds the [panel component](https://service-manual.nhs.uk/design-system/components/panel) from the NHS.UK design system. Support for React v19 is also included.
48-
49-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
5031

51-
## 6.0.0-beta.0 - 30 September 2025
32+
Features from NHS.UK frontend v10.0.0 include:
5233

53-
This version provides support for NHS.UK frontend v10.x.
34+
- [Header component with account section](https://service-manual.nhs.uk/design-system/components/header)
35+
- [Notification banner component](https://service-manual.nhs.uk/design-system/components/notification-banners)
36+
- [Panel component](https://service-manual.nhs.uk/design-system/components/panel)
37+
- [Full width buttons on mobile](https://service-manual.nhs.uk/design-system/components/buttons)
5438

55-
For a full list of changes in this release please refer to the [migration doc](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
39+
For a full list of changes in this release please refer to the [upgrade to 6.0 migration guide](https://github.com/NHSDigital/nhsuk-react-components/blob/main/docs/upgrade-to-6.0.md).
5640

5741
## 5.0.0 - 4 November 2024
5842

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,35 @@ This repository contains the code for NHS.UK React components - a port of the [N
1010

1111
## Installation
1212

13-
You can install this package using either `yarn` or `npm`.
13+
You can install this package using either `npm` or `yarn`.
1414

1515
```bash
1616
npm install --save nhsuk-react-components
17+
1718
# Or
1819
yarn add nhsuk-react-components
1920
```
2021

2122
## Usage
2223

2324
```jsx
24-
import { PureComponent } from 'react';
25-
26-
// You can import components from the global module
27-
import { Button } from 'nhsuk-react-components';
28-
29-
// Or you can import components directly
30-
import { Button } from 'nhsuk-react-components/dist/esm/components/button';
31-
32-
class GetStartedButton extends PureComponent {
33-
render() {
34-
return <Button>Click Me!</Button>;
35-
}
36-
}
25+
import { DateInput, Form } from 'nhsuk-react-components';
26+
27+
<Form noValidate>
28+
<DateInput
29+
hint="For example, 15 3 1984"
30+
legend="What is your date of birth?"
31+
legendProps={{ size: 'l' }}
32+
id="date-of-birth"
33+
error="Date of birth must include a day"
34+
>
35+
<DateInput.Day />
36+
<DateInput.Month error={false} />
37+
<DateInput.Year error={false} />
38+
</DateInput>
39+
40+
<Button>Save and continue</Button>
41+
</Form>;
3742
```
3843

3944
## Upgrading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nhsuk-react-components",
3-
"version": "6.0.0-beta.5",
3+
"version": "6.0.0",
44
"license": "MIT",
55
"author": {
66
"name": "NHS England"

0 commit comments

Comments
 (0)