Returns the select store from the nearest select container.

Code examples

function Select() {
const store = useSelectContext();
if (!store) {
throw new Error("Select must be wrapped in SelectProvider");
// Use the store...

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.