@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.
10 lines • 467 B
TypeScript
import * as React from 'react';
import type { Orientation } from "../utils/types.js";
export interface ToggleGroupContext {
value: readonly any[];
setGroupValue: (newValue: string, nextPressed: boolean, event: Event) => void;
disabled: boolean;
orientation: Orientation;
}
export declare const ToggleGroupContext: React.Context<ToggleGroupContext | undefined>;
export declare function useToggleGroupContext(optional?: boolean): ToggleGroupContext | undefined;