@coconut-software/ui
Version:
React components for faster and easier web development.
21 lines (20 loc) • 858 B
TypeScript
import type { ChangeEventHandler, PropsWithChildren, Ref } from 'react';
export interface CheckboxProps {
'aria-label'?: string;
'data-key'?: string;
defaultChecked?: boolean;
color?: CheckboxColor;
constrained?: boolean;
disabled?: boolean;
helperText?: string;
indeterminate?: boolean;
inputRef?: Ref<HTMLInputElement>;
name?: string;
size?: CheckboxSize;
onChange?: ChangeEventHandler<HTMLInputElement>;
tabIndex?: number;
}
type CheckboxColor = 'danger' | 'primary' | 'secondary';
type CheckboxSize = 'medium' | 'small';
declare function Input({ 'aria-label': label, children, color, constrained, 'data-key': key, defaultChecked, disabled, helperText, indeterminate, inputRef, name, onChange, size, tabIndex, }: PropsWithChildren<CheckboxProps>): JSX.Element;
export default Input;