@spaced-out/ui-design-system
Version:
Sense UI components library
29 lines • 860 B
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { GroupAlign } from '../../types/common';
type ClassNames = Readonly<{
wrapper?: string;
checkboxSquare?: string;
label?: string;
}>;
export type CheckboxProps = {
name?: string;
value?: string;
children?: React.ReactNode;
checked?: boolean;
indeterminate?: boolean;
focused?: boolean;
disabled?: boolean;
error?: boolean;
onChange?: (arg1: {
value: string;
checked: boolean;
}, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
align?: GroupAlign;
classNames?: ClassNames;
tabIndex?: number;
ariaLabel?: string;
};
export declare const Checkbox: Flow.AbstractComponent<CheckboxProps, HTMLInputElement>;
export {};
//# sourceMappingURL=Checkbox.d.ts.map