Skip to content

Button 按钮

用于开始一个即时操作。

变体

禁用状态

尺寸

圆形

块级

等宽高

组合

API

Button Props

继承自 ButtonHTMLAttributes<HTMLButtonElement>

属性名描述类型默认值
variant视觉样式。'solid' | 'outlined' | 'filled' | 'text'-
size尺寸。'small' | 'medium' | 'large'-
shape外形。'round' | 'square'-
equal宽高相等,适合纯图标。boolean-
disabled禁用状态。boolean-
block撑满父容器。boolean-

Button.Group Props

继承自 HTMLAttributes<HTMLDivElement>

属性名描述类型默认值
direction排列方向。'horizontal' | 'vertical'-
variant组内默认视觉样式。'solid' | 'outlined' | 'filled' | 'text'-
size组内默认尺寸。'small' | 'medium' | 'large'-
equal组内宽高相等。boolean-
disabled组内禁用状态。boolean-
childrenButton 子项。ReactElement<ButtonProps, string | JSXElementConstructor<any>> | Array<ReactElement<ButtonProps, string | JSXElementConstructor<any>>>-