Skip to content

pa-digital/govuk-frontend-react-demo

Repository files navigation

GOV.UK Design System React Demo User Guide

This demo is designed to be a developers guide to implementing the GOV.UK Design System React npm package which can be found here on PA-Digital.

There is a storybook implementation to show a basic guide that can be found here

You can find the Gov Uk design system references at the GOV.UK Design System website.

Developer use

Clone the repository from GitHub
npm install # installs all necessary modules
npm run start # runs the developer portal and you can view all the components and more complex examples

Components

These can be found in the src > domains > components folder and show a detailed example for rendering all components along with example data structures

Examples

There are a number of examples and forms. They use Yup and React Hook Forms but could be swapped out as required.

  1. Registration - Shows a standard registration and how to validate the DateTime and Checkboxes components
  2. Address Lookup - Shows how to implement an address lookup with a manual entry fallback
  3. Credential Entry - An example of a credential entry screen with the GDS Password control and Radio Buttons
  4. Branded Login - An example of a login screen using NIHR as an example
  5. Complete Branding - An example of how to override the stylesheet, example using NIHR with the stylesheet in the styling folder
  6. Question Set Builder - This is an example of how the controls and validation can all be constructed to produce a simple survey which is stored in a JSON format, for simplicity it is written to a cookie but could be stored.
  7. Rapid Prototype Builder - This is a developer playground for instant results

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages