ms-countries
Version:
Exports a list of countries for the modern slavery app into a usable format for hof select elements
20 lines (16 loc) • 616 B
Markdown
# Modern Slavery Countries
Exports a list of Countries to be used in the modern slavery app.
Can be used with the [Typeahead Aria](https://github.com/UKHomeOffice/typeahed-aria), which is exported with [HOF Frontend Assets](https://github.com/UKHomeOfficeForms/hof-frontend-assets).
## Example Usage
The following is an example of Modern Slavery Countries in a HOF `field` with Typeahead Aria:
```
'country-select'-step: {
mixin: 'select',
className: ['typeahead', 'js-hidden'],
options: [''].concat(require('ms-countries')),
legend: {
className: 'visuallyhidden'
},
validate: ['required']
},
```