@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
19 lines (18 loc) • 700 B
TypeScript
import { default as React, FunctionComponent } from 'react';
import { default as RadioGroup } from '../radiogroup';
import { BasicComponent } from '../../utils/typings';
import { RadioPosition, RadioShape } from './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;
};