UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

33 lines (32 loc) 1.07 kB
import type { CSSProperties } from 'react'; import type { PickClassStyleType } from 'jamis-core'; import type { ButtonLevel, SizeUnit, TooltipObject, Trigger } from '../../types'; export interface ButtonProps extends React.DOMAttributes<HTMLButtonElement>, PickClassStyleType { type?: 'button' | 'reset' | 'submit' | 'action'; id?: string; className?: string; href?: string; title?: string; style?: CSSProperties; overrideClassName?: boolean; /** * 按钮大小 */ size?: SizeUnit; level?: ButtonLevel; tooltip?: string | TooltipObject; tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left'; tooltipContainer?: any; tooltipTrigger?: Trigger | Array<Trigger>; tooltipRootClose?: boolean; disabled?: boolean; readOnly?: boolean; active?: boolean; block?: boolean; iconOnly?: boolean; disabledTip?: string | TooltipObject; componentClass?: React.ComponentType | 'button' | 'a' | 'div' | 'input'; loading?: boolean; loadingClassName?: string; target?: string; }