@autosugges/client
AutoSugges: edge autocomplete API + free reference datasets (countries, NAICS, airports, currencies…) behind one React / React Native / HTML component.
[npm]
[license]
Docs: https://docs.autosugges.com · Datasets: https://autosugges.com
Replace YOUR_PUBLISHABLE_KEY with a free key from https://app.autosugges.com — one key per list,
locked to your site's origins. Publishable keys are safe in a browser.
React / Next.js
value is the full selected item (an array for multi-select lists). Behaviour — minimum
characters, debounce, creatable items, multi-select — comes from the list's server policy;
overrides can only narrow it.
Expo / React Native
Optional peers for the bottom-sheet presentation: @gorhom/bottom-sheet,
react-native-gesture-handler, react-native-reanimated.
Plain HTML
Self-hosted copy with an SRI hash: https://autosugges.com/sdk/v1/autosugges.js. Other attributes:
data-autosugges-theme (light|dark), -locale, -label, -parent, -access-token. Call
window.AutoSugges.autoInit() after injecting markup later.
Entry points
. (client, combobox state machine) · ./react · ./react-core · ./native · ./native-ui ·
./browser. Style it with CSS custom properties (--as-color-text, --as-font-sans, …); see the docs.
MIT © AKHBaig