UNPKG

@quanxi/ui

Version:

全悉组件库

19 lines (18 loc) 544 B
import React, { CSSProperties } from "react"; import "./style.scss"; export type RadioOption<T> = { value: T; label: React.ReactNode; disabled?: boolean; }; export interface RadioProps<T = string | number | boolean> { style?: CSSProperties; className?: string; layout?: "vertical" | "horizontal"; options?: RadioOption<T>[]; value?: T; onChange?: (v: T) => void; disabled?: boolean; } declare const Radio: <T extends string | number | boolean>(props: RadioProps<T>) => JSX.Element; export default Radio;