@skillbill/vuelace-3
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/@skillbill%2Fvuelace-3)
22 lines (20 loc) • 564 B
TypeScript
import { VLInputRuleType, SlChangeEvent, SlInputEvent, SlInvalidEvent } from '../utils/types';
export interface Radio {
label: string;
value: any;
disabled?: boolean;
}
export interface VLRadioGroup {
label?: string;
helpText?: string;
name?: string;
size?: 'small' | 'medium' | 'large';
form?: string;
required?: boolean;
options: Radio[];
error?: string;
rules?: VLInputRuleType[];
onChange?: (e: SlChangeEvent) => void;
onInput?: (e: SlInputEvent) => void;
onInvalid?: (e: SlInvalidEvent) => void;
}