UNPKG

@skillbill/vuelace-3

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@skillbill%2Fvuelace-3.svg)](https://badge.fury.io/js/@skillbill%2Fvuelace-3)

22 lines (20 loc) 564 B
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; }