Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ms-nationalities

UKHomeOffice333MIT1.0.1

Exports a list of nationalities for the modern slavery app into a usable format for hof select elements

hof, modern-slavery, nationality, nationalities

readme

Modern Slavery Nationalities

Exports a list of Nationalities to be used in the modern slavery app.

Can be used with the Typeahead Aria, which is exported with HOF Frontend Assets.

Example Usage

The following is an example of Modern Slavery Nationalities in a HOF field with Typeahead Aria:

'country-select'-step: {
  mixin: 'select',
  className: ['typeahead', 'js-hidden'],
  options: [''].concat(require('ms-nationalities')),
  legend: {
    className: 'visuallyhidden'
  },
  validate: ['required']
},