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.

14 lines (13 loc) 660 B
import * as React from 'react'; import { UseCheckboxGroupParent } from './useCheckboxGroupParent.js'; export interface CheckboxGroupContext { value: string[] | undefined; defaultValue: string[] | undefined; setValue: (value: string[], event: Event) => void; allValues: string[] | undefined; parent: UseCheckboxGroupParent.ReturnValue; disabled: boolean; } export declare const CheckboxGroupContext: React.Context<CheckboxGroupContext | undefined>; export declare function useCheckboxGroupContext(optional: false): CheckboxGroupContext; export declare function useCheckboxGroupContext(optional?: true): CheckboxGroupContext | undefined;