{"repo":"alphagov/accessible-autocomplete","free":true,"listed":false,"github":"https://github.com/alphagov/accessible-autocomplete","clone":"git clone https://github.com/alphagov/accessible-autocomplete.git","description":"An autocomplete component, built to be accessible.","language":"JavaScript","stars":951,"topics":["typeahead","accessibility","javascript","autocomplete","govuk-design-system-team","portfolio","design-system"],"license":"MIT","category":"ui-components","readme_excerpt":"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 might be more appropriate. 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 and assistive technologies. Try out the 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. Read more about the types of support we can provide. --- Installation / usage Using npm and a module system Install it by running: The accessibleAutocomplete function will render an autocomplete and its accompanying suggestions and aria-live region. Your page should provide a and a container element: Then import it using a module system like Browserify / Webpack / Rollup, and call the accessibleAutocomplete function, providing an array of values: If you want to use it as a replacement for a element, read the Progressive enhancement section. As a plain JavaScript modu","default_branch":null,"files":null,"tree":[],"storefront":"/r/alphagov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alphagov/accessible-autocomplete/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}