UNPKG

@up-group-ui/react-controls

Version:
27 lines (26 loc) 772 B
/// <reference types="react" /> import { WithThemeProps } from '../../../Common/theming/withTheme'; export interface Option { name: string; value?: any; text?: string; iconName?: string; onOptionChange?: (event: React.ChangeEvent<any>, value: boolean) => void; checked?: boolean; disabled?: boolean; readonly?: boolean; } export interface UpCheckboxStyledProps extends WithThemeProps { className?: string; tabIndex?: number; onChange?: (event: React.ChangeEvent<any>, value: Option) => void; readonly?: boolean; } export interface UpCheckboxProps extends WithThemeProps { options: Array<Option>; tabIndex?: number; styles?: React.CSSProperties; } export interface UpCheckboxState { options: Array<Option>; }