# Accessible autocomplete The accessible autocomplete is a component that helps users choose answers from a list you provide. You can also use it to make the answers you get from users more consistent. If you're asking users to provide their country or territory, the [govuk-country-and-territory-autocomplete](https://github.com/alphagov/govuk-country-and-territory-autocomplete/blob/main/README.md) might be more appropriate. [![npm version](https://img.shields.io/npm/v/accessible-autocomplete.svg)](http://npm.im/accessible-autocomplete) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![gzip size](http://img.badgesize.io/https://unpkg.com/accessible-autocomplete/dist/accessible-autocomplete.min.js?compression=gzip)](https://unpkg.com/accessible-autocomplete/dist/accessible-autocomplete.min.js) [![Sauce Labs Build Status](https://saucelabs.com/browser-matrix/tvararu-alphagov.svg)](https://saucelabs.com/u/tvararu-alphagov) `accessible-autocomplete` is a JavaScript autocomplete built from the ground up to be accessible. The design goals are: - **Accessibility**: Following WAI-ARIA best practices and testing with assistive technologies. - **User experience**: Supporting a wide variety of user needs. - **Compatibility**: Working with [recommended browsers](https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in) and [assistive technologies](https://www.gov.uk/service-manual/technology/testing-with-assistive-technologies#which-assistive-technologies-to-test-with). [Try out the examples!](https://alphagov.github.io/accessible-autocomplete/examples/) --- ## Support The GOV.UK Design System team maintains the accessible autocomplete as a standalone component. However, we’re only able to put in minimal work to support it. [Read about our plans to maintain this component](https://github.com/alphagov/accessible-autocomplete/issues/532). [Read more about the types of support we can provide](https://github.com/alphagov/accessible-autocomplete/issues/430). --- ## Installation / usage ### Using npm and a module system Install it by running: ```bash npm install --save accessible-autocomplete ``` The `accessibleAutocomplete` function will render an autocomplete `` and its accompanying suggestions and `aria-live` region. Your page should provide a `