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