npm.io
1.1.6 • Published 4 years ago

govuk-angular

Licence
MIT
Version
1.1.6
Deps
1
Size
841 kB
Vulns
0
Weekly
0

GovUKAngular

Note : This is still a work in progress.

Requires Angular 10

Angular component for use with : https://design-system.service.gov.uk/

View demo at (private at the moment sorry ):

https://anthony.a.griffiths.gitlab-pages.nonprod.dwpcloud.uk/angular-gov-uk-design

Quick Install

npm i govuk-angular

Quick start with a base project

If you are starting from a clean slate then you may want to check out this project here : TODO

Motivation

We simply needed these components for our application! :-)

This repository contains govuk-frontend compatible Angular (v10) components. The aim of this package is to steer closely to govuk-frontend by consuming the CSS directly from the govuk-frontend npm package. And to strike a balance between mirroring the GOV.UK Nunjucks params vs ideomatic Angular props ( Sound familiar? ).

Inspired by

https://github.com/surevine/govuk-react-jsx

Component List

  • Accordion
  • Back link
  • Button
  • Input
  • Radio
  • Tags
  • Checkboxes
  • Loading Indicator
  • Tabs
  • Details
  • Warning Text
  • Error message
  • Error summary
  • Panel