Appearance
@sylis/web / components/button/Button / ButtonProps
Interface: ButtonProps
Defined in: apps/web/src/components/button/Button.tsx:6
Extends
ButtonHTMLAttributes<HTMLButtonElement>
Properties
block?
optionalblock:boolean
Defined in: apps/web/src/components/button/Button.tsx:22
是否块级按钮
children?
optionalchildren:ReactNode
Defined in: apps/web/src/components/button/Button.tsx:24
子元素
Overrides
React.ButtonHTMLAttributes.children
disabled?
optionaldisabled:boolean
Defined in: apps/web/src/components/button/Button.tsx:14
禁用状态
Overrides
React.ButtonHTMLAttributes.disabled
icon?
optionalicon:ReactNode
Defined in: apps/web/src/components/button/Button.tsx:16
图标(左侧)
iconRight?
optionaliconRight:ReactNode
Defined in: apps/web/src/components/button/Button.tsx:18
图标(右侧)
loading?
optionalloading:boolean
Defined in: apps/web/src/components/button/Button.tsx:12
加载状态
shape?
optionalshape:"default"|"round"|"circle"
Defined in: apps/web/src/components/button/Button.tsx:20
圆角样式
size?
optionalsize:"medium"|"small"|"large"
Defined in: apps/web/src/components/button/Button.tsx:10
按钮尺寸
variant?
optionalvariant:"primary"|"secondary"|"outline"|"ghost"|"danger"
Defined in: apps/web/src/components/button/Button.tsx:8
按钮类型