UNPKG

@base-ui/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.

22 lines (21 loc) 752 B
"use strict"; 'use client'; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.CompositeListContext = void 0; exports.useCompositeListContext = useCompositeListContext; var React = _interopRequireWildcard(require("react")); const CompositeListContext = exports.CompositeListContext = /*#__PURE__*/React.createContext({ register: () => {}, unregister: () => {}, subscribeMapChange: () => () => {}, nextIndexRef: { current: 0 } }); if (process.env.NODE_ENV !== "production") CompositeListContext.displayName = "CompositeListContext"; function useCompositeListContext() { return React.useContext(CompositeListContext); }