How to use the govuk-frontend/govuk/components/button/button function in govuk-frontend

To help you get started, we’ve selected a few govuk-frontend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alphagov / govuk-frontend / docs / installation / examples / webpack / assets / main.js View on Github external
import Button from 'govuk-frontend/govuk/components/button/button'

new Button(document).init()

govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.

MIT
Latest version published 1 month ago

Package Health Score

89 / 100
Full package analysis