@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.
14 lines • 417 B
JavaScript
import { PopupTriggerMap } from "../../utils/popups/index.js";
import { FloatingRootStore } from "../components/FloatingRootStore.js";
export function getEmptyRootContext() {
return new FloatingRootStore({
open: false,
floatingElement: null,
referenceElement: null,
triggerElements: new PopupTriggerMap(),
floatingId: '',
nested: false,
noEmit: false,
onOpenChange: undefined
});
}