@uktrade/react-component-library
v0.14.1
Published
A collection of reusable React components following GOV.UK design patterns.
Readme
React Design System
A collection of reusable React components following GOV.UK design patterns.
Table of Contents
Installation
npm install @uktrade/react-component-libraryPeer Dependencies:
react >= 19react-dom >= 19
Usage
Import components from the package:
import { SummaryList, SummaryItem } from "@uktrade/react-component-library";You can use them directly in your React applications.
Development
Build
git clone https://github.com/uktrade/react-component-library.git
cd react-component-library
nvm use
npm ci
npm run buildCopies TypeScript output and .css files into dist/.
Playground
npm run build
npm run docs:build
npm run docs:startThis opens a Vite dev server with the playground for testing components.
