
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
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) - [Installation](#installation) - [Usage](#usage) - [Storybook](#storybook) - [Maintainers](#maintainers) - [
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.
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 3,260 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
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.