@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
25 lines (24 loc) • 1.01 kB
TypeScript
import * as React from 'react';
import { ReactNode, SyntheticEvent } from 'react';
import { FlexProps } from 'rebass';
import { ContainerProps } from '../ContainerProps';
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';
};
export interface CheckBoxProps extends TypeProps, Omit<ContainerProps, keyof TypeProps>, Omit<React.HTMLProps<HTMLDivElement>, keyof TypeProps | 'ref'> {
}
declare const CheckBox: ({ children, checked, onChange, value, name, disabled, readOnly, variant, gapDistance, childrenPosition, as, ...props }: CheckBoxProps) => React.JSX.Element;
export declare const CheckBoxGroup: (props: FlexProps & {
orientation: 'horizontal' | 'vertical';
}) => React.JSX.Element;
export { CheckBox };