govuk-country-and-territory
v1.0.5
Published
The GOV.UK country and territory selector for the GOV.UK prototype kit
Downloads
15
Maintainers
Readme
GOV.UK prototype kit country and territory autocomplete plugin
A basic implementation of the govuk-country-and-territory-autocomplete component for use in the GOV.UK prototype kit.
Installation
To install, open a terminal window within your prototype and run npm install govuk-country-and-territory
.
Usage
To use a within your prototype:
- Insert
{{ govukCountryAndTerritory() }}
anywhere in your prototype. - To use a custom label or ID use
{{ govukCountryAndTerritory({ "id": "custom-id", "label": { "text": "Custom label" } }) }}
Updating
To update, go to http://localhost:3000/manage-prototype/plugins-installed
and hit the update button.