@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
9 lines • 377 B
JavaScript
import * as React from 'react';
export const SelectIndexContext = /*#__PURE__*/React.createContext(undefined);
export function useSelectIndexContext() {
const context = React.useContext(SelectIndexContext);
if (context === undefined) {
throw new Error('Base UI: SelectIndexContext is missing. Select parts must be placed within <Select.Root>.');
}
return context;
}