nhsuk-frontend-react-extension
v1.0.1
Published
An extension to the NHSUK Frontend React Components Library
Downloads
144
Maintainers
Readme
nhsuk-frontend-react-extension
This is a collection of components not found in the NHS.UK Frontend library but exist in GOV.UK Frontend or are components that are commonly used in NHS.UK projects.
Version compatibility
With the release of v9 of the NHS.UK Frontend library, the version of this library has been bumped to v4. The following table shows the compatibility between the NHS.UK Frontend library and nhsuk-frontend-react-extension
:
| nhsuk-frontend | nhsuk-frontend-react-extension | branch |
| -------------- | ------------------------------ | ------------------------------------------------------------- |
| 8.x.x
| 0.x.x
| v3 |
| 9.x.x
| 4.x.x
| main |
Installation
pnpm add nhsuk-frontend nhsuk-frontend-react-extension
Usage
import { LoginButton } from 'nhsuk-frontend-react-extension';
import 'nhsuk-frontend-react-extension/nhsuk-extension.css';
export const LoginPage = () => (
<div>
<h1>Login</h1>
<LoginButton variant="cis2" />
</div>
);
Testing
To run the tests, you can use the following command:
pnpm test
License
The codebase is released under the MIT Licence, unless stated otherwise.