@workday/canvas-kit-react-checkbox
Version:
A Canvas-styled checkbox input
20 lines (19 loc) • 758 B
TypeScript
import * as React from 'react';
import { ErrorType, Themeable } from '@workday/canvas-kit-react-common';
export interface CheckboxProps extends Themeable, React.InputHTMLAttributes<HTMLInputElement> {
checked?: boolean;
disabled?: boolean;
id?: string;
inputRef?: React.Ref<HTMLInputElement>;
label?: string;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
value?: string;
error?: ErrorType;
indeterminate?: boolean;
}
export declare const Checkbox: {
({ checked, label, theme, id, disabled, inputRef, onChange, value, error, indeterminate, ...elemProps }: CheckboxProps): JSX.Element;
ErrorType: typeof ErrorType;
};
export default Checkbox;
//# sourceMappingURL=Checkbox.d.ts.map