UNPKG

@devfamily/admiral

Version:

Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.

27 lines (26 loc) 830 B
/// <reference types="react" /> import { ChoiceChangeEvent, ChoiceView } from '../Choice/interfaces'; export interface AbstractCheckboxProps<T> { className?: string; defaultChecked?: boolean; checked?: boolean; style?: React.CSSProperties; disabled?: boolean; onChange?: (e: T) => void; onClick?: React.MouseEventHandler<HTMLElement>; onMouseEnter?: React.MouseEventHandler<HTMLElement>; onMouseLeave?: React.MouseEventHandler<HTMLElement>; value?: any; tabIndex?: number; name?: string; children?: React.ReactNode; id?: string; autoFocus?: boolean; type?: string; } export interface CheckboxProps extends AbstractCheckboxProps<ChoiceChangeEvent> { view?: ChoiceView; size?: 'm' | 'l'; align?: 'top' | 'center' | 'bottom'; indeterminate?: boolean; }