A basic implementation of the govuk-country-and-territory-autocomplete component for use in the GOV.UK prototype kit.
To install, open a terminal window within your prototype and run npm install govuk-country-and-territory
.
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" } }) }}
To update, go to http://localhost:3000/manage-prototype/plugins-installed
and hit the update button.