@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.
19 lines (18 loc) • 728 B
TypeScript
import type { UseCheckboxGroupParent } from './useCheckboxGroupParent.js';
import type { GenericHTMLProps } from '../utils/types.js';
export declare function useCheckboxGroup(params: UseCheckboxGroup.Parameters): UseCheckboxGroup.ReturnValue;
declare namespace UseCheckboxGroup {
interface Parameters {
value?: string[];
defaultValue?: string[];
onValueChange?: (value: string[], event: Event) => void;
allValues?: string[];
}
interface ReturnValue {
getRootProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps;
value: string[];
setValue: (value: string[], event: Event) => void;
parent: UseCheckboxGroupParent.ReturnValue;
}
}
export {};