UNPKG

rtaro-ui

Version:
36 lines (22 loc) 690 B
import { MouseEvent, ComponentClass } from 'react' import { CommonEvent } from '@rtarojs/components/types/common' import AtComponent from './base' export interface RadioOption<T> { value?: T label?: string desc?: string disabled?: boolean } export interface AtRadioGroupProps<T> extends AtComponent { label?: string required?: boolean disabled?: boolean value?: T options?: Array<RadioOption<T>> onChange?: (vaule: T, event?: CommonEvent) => void type?: 'default' | 'tag' shape?: 'default' | 'round' editable?: boolean } declare const AtRadioGroup: ComponentClass<AtRadioGroupProps<any>> export default AtRadioGroup