UNPKG

@ariakit/react

Version:

Toolkit for building accessible web apps with React

30 lines (18 loc) 892 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _4Q5TABN7cjs = require('./4Q5TABN7.cjs'); var _LZ6L3ECGcjs = require('./LZ6L3ECG.cjs'); // ../ariakit-react-components/dist/popover/popover-anchor.js var TagName = "div"; var usePopoverAnchor = _LZ6L3ECGcjs.createHook.call(void 0, function usePopoverAnchor2({ store, ...props }) { const context = _4Q5TABN7cjs.usePopoverProviderContext.call(void 0, ); store = store || context; props = { ...props, ref: _LZ6L3ECGcjs.useMergeRefs.call(void 0, store == null ? void 0 : store.setAnchorElement, props.ref) }; return props; }); var PopoverAnchor = _LZ6L3ECGcjs.forwardRef.call(void 0, function PopoverAnchor2(props) { return _LZ6L3ECGcjs.createElement.call(void 0, TagName, usePopoverAnchor(props)); }); exports.usePopoverAnchor = usePopoverAnchor; exports.PopoverAnchor = PopoverAnchor;