@etchteam/recycling-locator
TypeScript icon, indicating that this package has built-in type declarations

1.36.0 • Public • Published

Recycling Locator

Welsh language support

Use the locale attribute to set the language. cy is currently the only supported language code.

<recycling-locator locale="cy"></recycling-locator>

Prefilled location

Provide the postcode attribute to skip initial location entry.

<recycling-locator postcode="AB123CD"></recycling-locator>

Listening for when the locator has loaded

The <recycling-locator> will dispatch a custom "ready" event when the UI has rendered.

document
  .querySelector('recycling-locator')
  .addEventListener('ready', () => {
    console.info('Ready to recycle');
  });

Contributing

Looking to contribute to the code? A good starting point is the contributing docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @etchteam/recycling-locator

Weekly Downloads

118

Version

1.36.0

License

MIT

Unpacked Size

17.7 MB

Total Files

305

Last publish

Collaborators

  • ella-etch
  • joshthewanderer
  • gavmck
  • dan-webb