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.

28 lines (27 loc) 994 B
import * as React from 'react'; export declare function useCheckboxGroupParent(params: UseCheckboxGroupParent.Parameters): UseCheckboxGroupParent.ReturnValue; export declare namespace UseCheckboxGroupParent { interface Parameters { allValues?: string[]; value?: string[]; onValueChange?: (value: string[], event: Event) => void; } interface ReturnValue { id: string | undefined; indeterminate: boolean; disabledStatesRef: React.MutableRefObject<Map<string, boolean>>; getParentProps: () => { id: string | undefined; indeterminate: boolean; checked: boolean; 'aria-controls': string; onCheckedChange: (checked: boolean, event: Event) => void; }; getChildProps: (name: string) => { name: string; id: string; checked: boolean; onCheckedChange: (checked: boolean, event: Event) => void; }; } }