A collection of reusable React components following GOV.UK design patterns.
npm install @uktrade/react-component-libraryA collection of reusable React components following GOV.UK design patterns.
* Installation
* Usage
* Development
* Build
* Playground
``bash`
npm install @uktrade/react-component-library
Peer Dependencies:
* react >= 19react-dom >= 19
*
Import components from the package:
`tsx`
import { SummaryList, SummaryItem } from "@uktrade/react-component-library";
You can use them directly in your React applications.
`bash`
git clone https://github.com/uktrade/react-component-library.git
cd react-component-library
nvm use
npm ci
npm run build
Copies TypeScript output and .css files into dist/.
`bash``
npm run build
npm run docs:build
npm run docs:start
This opens a Vite dev server with the playground for testing components.