@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.
11 lines • 424 B
TypeScript
import type { FloatingNodeType, FloatingEvents } from "../types.js";
/**
* Stores and manages floating elements in a tree structure.
* This is a backing store for the `FloatingTree` component.
*/
export declare class FloatingTreeStore {
readonly nodesRef: React.RefObject<Array<FloatingNodeType>>;
readonly events: FloatingEvents;
addNode(node: FloatingNodeType): void;
removeNode(node: FloatingNodeType): void;
}