New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@uktrade/react-component-library

Package Overview
Dependencies
Maintainers
9
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uktrade/react-component-library

A collection of reusable React components following GOV.UK design patterns.

latest
Source
npmnpm
Version
0.17.0
Version published
Maintainers
9
Created
Source

React Design System

A collection of reusable React components following GOV.UK design patterns.

Table of Contents

  • Installation
  • Usage
  • Development

Installation

npm install @uktrade/react-component-library

Peer Dependencies:

  • react >= 19
  • react-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 build

Copies TypeScript output and .css files into dist/.

Playground

npm run build
npm run docs:build
npm run docs:start

This opens a Vite dev server with the playground for testing components.

Publishing a new version

To publish a new version to NPM @uktrade/react-component-library:

  • Update the version in package.json following semantic versioning (don’t forget to sync the lockfile as well).
  • Commit your changes on a feature or working branch.
  • Open a pull request and merge it into main.
  • Create a new GitHub Release from the main branch and tag it with the same version (for example, v0.10.1).
  • Once the release is published, the GitHub Actions workflow will automatically build and publish the package to NPM.

Keywords

react-components

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

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.

Install

Related posts