An implementation of the GOV.UK Design System in React that provides support for writing internal applications in addition to public ones.
An implementation of the GOV.UK Design System in React that provides
support for writing internal applications in addition to public ones.
See: About NotGovUK
The components are written in Typescript and documented in
Storybook’s MDX format.
Warning: This is a work in progress and should only be used in
production by brave souls.
(See our documentation site and our Storybook.)
In order to consume these components you will require a system that
utilised a bundler (such as Webpack) that can process imported assets
such as images, fonts and Sass files. Create React App may be able to
do this but does not provide Server-Side Rendering (SSR). You will also
need to ensure that you provide an instance of react-router.
As such, we suggest that you use our specially designed tech stack for
this purpose. See: Getting started.
See: Working on and contributing to NotGovUK
The is a monorepo and so it contains multiple packages. The packages are
broken down into libraries, components and applications.
apps/
lib/
components/
coverage/
make test
.storybook-static/
make docs
.src/Component.ts[x]
.tsx
files inassets/Component.scss
spec/Component.spec.ts
spec/Component.stories.mdx
README.md
Pull requests are welcome but it is probably best to open an issue
first to discuss what you think needs to change.
I would like this project to be as easy as possible to both consume and
contribute to. To that end, if you think any of the documentation isn’t
clear please do let me know by raising an issue or a pull request.
Finally, this work is still at quite an early stage. If you run into any
problems or have any questions, please do get in touch.
– Daniel Martin, December 2019 (updated August 2020).