From c470c9440492761a14a90510d096e2bb57c820b1 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 10 Mar 2026 17:06:40 +0000 Subject: [PATCH 1/3] Update README examples --- README.md | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d0cc03c3..f0d6ec89 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ This repository contains the code for NHS.UK React components - a port of the [N ## Installation -You can install this package using either `yarn` or `npm`. +You can install this package using either `npm` or `yarn`. ```bash npm install --save nhsuk-react-components + # Or yarn add nhsuk-react-components ``` @@ -21,19 +22,23 @@ yarn add nhsuk-react-components ## Usage ```jsx -import { PureComponent } from 'react'; - -// You can import components from the global module -import { Button } from 'nhsuk-react-components'; - -// Or you can import components directly -import { Button } from 'nhsuk-react-components/dist/esm/components/button'; - -class GetStartedButton extends PureComponent { - render() { - return ; - } -} +import { DateInput, Form } from 'nhsuk-react-components'; + +
+ + + + + + + +
; ``` ## Upgrading From 194870ebb71f330db1dbd1eab5c23264022f3c9d Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 10 Mar 2026 16:44:50 +0000 Subject: [PATCH 2/3] Bump version number for v6.0.0 release --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 938ecaf4..dda1c52b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # NHS.UK React components -## 6.0.0-beta.5 - 23 January 2026 +## 6.0.0 - 10 March 2026 This version provides support for NHS.UK frontend v10.3 and includes: diff --git a/package.json b/package.json index bb106506..99ab9de9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nhsuk-react-components", - "version": "6.0.0-beta.5", + "version": "6.0.0", "license": "MIT", "author": { "name": "NHS England" From 7edd784f36c1cedad8e092264b8555395f0475ee Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 10 Mar 2026 16:45:02 +0000 Subject: [PATCH 3/3] Update changelog for v6.0.0 release --- CHANGELOG.md | 52 ++++++++++++++++++---------------------------------- 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dda1c52b..949666db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,57 +2,41 @@ ## 6.0.0 - 10 March 2026 -This version provides support for NHS.UK frontend v10.3 and includes: +This version provides support for NHS.UK frontend v10.3.0 + +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. + +- React v19 with strict mode support +- React server-side rendering (SSR) support +- React server components (RSC) support +- Forwarded refs from all form inputs + +Features from NHS.UK frontend v10.3.0 include: - [File upload component](https://service-manual.nhs.uk/design-system/components/file-upload) - [Interruption panel variant](https://service-manual.nhs.uk/design-system/components/panel#interruption-panel) - [Summary cards](https://service-manual.nhs.uk/design-system/components/summary-list#summary-cards) -With additional support added for NHS.UK frontend v10.2 including: +Features from NHS.UK frontend v10.2.0 include: - [Password input component](https://service-manual.nhs.uk/design-system/components/password-input) - [Smaller and inline buttons](https://service-manual.nhs.uk/design-system/components/buttons#smaller-buttons) - [Text input styles for codes and sequences](https://service-manual.nhs.uk/design-system/components/text-input#codes-and-sequences) - [Select](https://service-manual.nhs.uk/design-system/components/select) dividers using `` -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). - -## 6.0.0-beta.4 - 5 November 2025 - -This version provides support for NHS.UK frontend v10.1 and includes: - -- Support for HTML in legend, label and error props -- Default legend and label to `isPageHeading: true` when `headingLevel` is set - -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). - -## 6.0.0-beta.3 - 27 October 2025 - -This version provides support for NHS.UK frontend v10.1 and includes: +Features from NHS.UK frontend v10.1.0 include: - [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) - [Numbered pagination](https://service-manual.nhs.uk/design-system/components/pagination#for-navigating-between-pages-of-items) -- React strict mode support - -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). - -## 6.0.0-beta.2 - 13 October 2025 - -This version provides support for NHS.UK frontend v10.x, React Server Components (RSC) and fixes a Rollup `'use client'` directive issue. - -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). - -## 6.0.0-beta.1 - 8 October 2025 - -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. - -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). -## 6.0.0-beta.0 - 30 September 2025 +Features from NHS.UK frontend v10.0.0 include: -This version provides support for NHS.UK frontend v10.x. +- [Header component with account section](https://service-manual.nhs.uk/design-system/components/header) +- [Notification banner component](https://service-manual.nhs.uk/design-system/components/notification-banners) +- [Panel component](https://service-manual.nhs.uk/design-system/components/panel) +- [Full width buttons on mobile](https://service-manual.nhs.uk/design-system/components/buttons) -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). +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). ## 5.0.0 - 4 November 2024