UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

26 lines (25 loc) 1.01 kB
import * as React from 'react'; import { ReactNode, SyntheticEvent } from 'react'; import { FlexProps } from '../Flex'; type TypeProps = { checked?: boolean | null; disabled?: boolean; readOnly?: boolean; as?: any; name?: string; value?: any; variant?: 'default' | 'agGrid'; onChange?: (checked: boolean, event: SyntheticEvent) => void; children?: ReactNode; gapDistance?: number | string; childrenPosition?: 'start' | 'end'; checkSquareClassName?: string; }; export interface CheckBoxProps extends TypeProps, Omit<React.HTMLProps<HTMLDivElement>, keyof TypeProps | 'ref'> { } declare const CheckBox: ({ children, checked, onChange, value, name, disabled, readOnly, variant, gapDistance, childrenPosition, checkSquareClassName, tabIndex, as, ...props }: CheckBoxProps) => React.JSX.Element; export declare const CheckBoxGroup: (props: FlexProps & { orientation: "horizontal" | "vertical"; children?: ReactNode; }) => React.JSX.Element; export { CheckBox };