UNPKG

@mijadesign/mjui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

19 lines (18 loc) 705 B
import React, { FunctionComponent } from 'react'; import RadioGroup from '../../packages/radiogroup'; import { BasicComponent } from '../../utils/typings'; import { RadioPosition, RadioShape } from '../../packages/radio/types'; export interface RadioProps extends BasicComponent { disabled: boolean; checked: boolean; defaultChecked: boolean; shape: RadioShape; labelPosition: RadioPosition; icon: React.ReactNode; activeIcon: React.ReactNode; value: string | number; onChange: (checked: boolean) => void; } export declare const Radio: FunctionComponent<Partial<RadioProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & { Group: typeof RadioGroup; };