UNPKG

@dojima-ui/types

Version:

common types utilised by dojima organisation for webpages.

15 lines (14 loc) 622 B
/// <reference types="react" /> import { GridComponentProps } from './Grid'; import { FormControlComponentProps } from './Common'; export declare type RadioButtonSize = 'small' | 'medium' | undefined; export declare type RadioGroupSelectionType = 'single' | 'multiple'; export interface RadioComponentProps extends FormControlComponentProps, GridComponentProps { options: string[]; onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void; horizontal?: boolean; radioSize?: RadioButtonSize; selectionType: RadioGroupSelectionType; radioClassname?: string; name: string; }