@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.
9 lines • 449 B
TypeScript
import * as React from 'react';
import type { Orientation } from "../../internals/types.js";
export interface ToolbarRootContext {
disabled: boolean;
orientation: Orientation;
}
export declare const ToolbarRootContext: React.Context<ToolbarRootContext | undefined>;
export declare function useToolbarRootContext(optional?: false): ToolbarRootContext;
export declare function useToolbarRootContext(optional: true): ToolbarRootContext | undefined;