UNPKG

@tarojsx/ui

Version:

We reinvents the UI for Taro3+

19 lines (18 loc) 782 B
import React from 'react'; import { ButtonProps as _ButtonProps } from '@tarojs/components/types/Button'; import { AtButtonProps } from 'taro-ui/types/button'; import { IconProps } from './Icon'; import '../style/Button.scss'; export interface ButtonProps extends Omit<_ButtonProps, 'size' | 'type'>, Pick<AtButtonProps, 'circle' | 'full'> { className?: string; style?: React.CSSProperties; type?: _ButtonProps['type'] | AtButtonProps['type'] | 'error'; size?: _ButtonProps['size'] | AtButtonProps['size']; /** onClick 事件节流时间间隔, 单位: ms, 默认 500ms. */ clickThrottle?: boolean | number; /** 透明按钮 */ transparent?: boolean; iconInfo?: IconProps; fab?: boolean; } export declare const Button: React.FC<ButtonProps>;