JSPM

  • Created
  • Published
  • Downloads 1314
  • Score
    100M100P100Q103678F
  • License MIT

React components implementing the GOV.UK Design System.

Package Exports

  • @not-govuk/components
  • @not-govuk/components/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@not-govuk/components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NotGovUK - Components

An implementation of the GOV.UK Design System in React that provides support for writing internal applications in addition to public ones.

Using this package

First install the package into your project:

npm install -S @not-govuk/components

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import { Header, Footer } from '@not-govuk/components';

export const MyComponent = props => (
  <Header
    // WRITEME
  />
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean