Skip to content

@sylis/web v0.0.0


@sylis/web / components/button/Button / ButtonProps

Interface: ButtonProps

Defined in: apps/web/src/components/button/Button.tsx:6

Extends

  • ButtonHTMLAttributes<HTMLButtonElement>

Properties

block?

optional block: boolean

Defined in: apps/web/src/components/button/Button.tsx:22

是否块级按钮


children?

optional children: ReactNode

Defined in: apps/web/src/components/button/Button.tsx:24

子元素

Overrides

React.ButtonHTMLAttributes.children


disabled?

optional disabled: boolean

Defined in: apps/web/src/components/button/Button.tsx:14

禁用状态

Overrides

React.ButtonHTMLAttributes.disabled


icon?

optional icon: ReactNode

Defined in: apps/web/src/components/button/Button.tsx:16

图标(左侧)


iconRight?

optional iconRight: ReactNode

Defined in: apps/web/src/components/button/Button.tsx:18

图标(右侧)


loading?

optional loading: boolean

Defined in: apps/web/src/components/button/Button.tsx:12

加载状态


shape?

optional shape: "default" | "round" | "circle"

Defined in: apps/web/src/components/button/Button.tsx:20

圆角样式


size?

optional size: "medium" | "small" | "large"

Defined in: apps/web/src/components/button/Button.tsx:10

按钮尺寸


variant?

optional variant: "primary" | "secondary" | "outline" | "ghost" | "danger"

Defined in: apps/web/src/components/button/Button.tsx:8

按钮类型