
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
nhsuk-react-components
Advanced tools
- [NHS.UK React Components](#nhsuk-react-components) - [Coming from 0.x?](#coming-from-0x) - [Upgrading to 2.0](#upgrading-to-20) - [Upgrading to 3.0](#upgrading-to-30) - [Upgrading to 4.0](#upgrading-to-40) - [Installation](#installation) - [
NHS.UK Frontend ported to React
If you're coming from versions of the library prior to 1.0.0, please give this doc a brief read, as there a number of changes between 0.x release and the 1.0 release.
If you're upgrading to 2.0, please be aware we have made some breaking changes. This doc has the details.
If you're upgrading to 3.0, please be aware we have made some breaking changes. This doc has the details.
If you're upgrading to 4.0, please be aware we have made some breaking changes. This doc has the details.
You can install this package using either yarn
or npm
.
npm install --save nhsuk-react-components
# Or
yarn add nhsuk-react-components
import React, { 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/lib/components/button';
class GetStartedButton extends PureComponent {
render() {
return <Button>Click Me!</Button>;
}
}
A storybook containing all of the components and their usage can be found here.
We're currently looking for new maintainers! If you have knowledge of React and would be willing to help maintain this library, you can email me (Thomas Judd-Cooper) here.
Releases run in CI using github actions.
To prepare a release create a new release TAG in github with your release version.
NPM_TOKEN
should be stored in the repositories secrets in GitHub
major.minor.patch
against main.beta
then select pre-release
as true, this will make the tag
point at beta
. Otherwise the tag will be latest
.Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.
FAQs
This repository contains the code for NHS.UK React components - a port of the [NHS.UK Frontend components](https://github.com/nhsuk/nhsuk-frontend).
The npm package nhsuk-react-components receives a total of 4,244 weekly downloads. As such, nhsuk-react-components popularity was classified as popular.
We found that nhsuk-react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.