UNPKG

@td-design/react-native

Version:

react-native UI组件库

26 lines 766 B
import { FC, ReactNode } from 'react'; import { DimensionValue } from 'react-native'; import { PressableProps } from '../pressable'; export type ButtonProps = PressableProps & { /** 按钮文字内容 */ title: ReactNode; /** 按钮展示类型 */ type?: 'primary' | 'secondary'; /** 是否失效 */ disabled?: boolean; /** 是否加载中 */ loading?: boolean; /** 按钮点击事件 */ onPress: () => void; /** 按钮的宽度 */ width?: DimensionValue; /** 圆角 */ borderRadius?: number; /** 不显示border */ bordered?: boolean; /** 按钮大小 */ size?: 'default' | 'small' | 'large'; }; declare const Button: FC<ButtonProps>; export default Button; //# sourceMappingURL=index.d.ts.map