package
A ARIA compliant React combobox component
npm install react-comboboxGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 2 packages.
174.5 kB
Includes dependencies.
WAI-ARIA accessible React autocomplete component (combobox).
This implementation is almost entirely derived from rpflorence/react-autocomplete, but has changed enough to earn its own repo. But it's totally a WIP and shouldn't be used for production yet.
npm install react-combobox
This is not production ready, but I welcome use-cases opened in the issues :)
http://rackt.github.io/react-autocomplete/example/
var Autocomplete = require('react-autocomplete');
// its actually called a combobox, but noboby searches for that
var Combobox = Autocomplete.Combobox;
var Option = Autocomplete.Option;
var comboboxinItUp = (
// Just like <select><option/></select>, this component is a
// composite component. This gives you complete control over
// What is displayed inside the <Option>s as well as allowing
// you to render whatever you want inside, like a "no results"
// message that isn't interactive like the <Options> are.
// Start with the <Combobox/> and give it some handlers.
<Combobox
onInput={handleInput}
onSelect={handleSelect}
autocomplete="both"
>
// `onInput` is called when the user is typing, it gets passed the
This is not realistic code, check out the examples directory for a real implementation.