UNPKG

@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.

12 lines 693 B
import * as React from 'react'; import type { Orientation } from "../../utils/types.js"; import type { CompositeMetadata } from "../../composite/list/CompositeList.js"; import type { ToolbarRoot } from "./ToolbarRoot.js"; export interface ToolbarRootContext { disabled: boolean; orientation: Orientation; setItemMap: React.Dispatch<React.SetStateAction<Map<Node, CompositeMetadata<ToolbarRoot.ItemMetadata> | null>>>; } export declare const ToolbarRootContext: React.Context<ToolbarRootContext | undefined>; export declare function useToolbarRootContext(optional?: false): ToolbarRootContext; export declare function useToolbarRootContext(optional: true): ToolbarRootContext | undefined;