@univerjs/design v0.5.0-beta.1 • Docs
Interface: IButtonProps
Properties
Property | Type | Description | Defined in |
---|---|---|---|
block? | boolean | Option to fit button width to its parent width Default false | submodules/univer/packages/design/src/components/button/Button.tsx:50 |
children? | ReactNode | - | submodules/univer/packages/design/src/components/button/Button.tsx:26 |
className? | string | Semantic DOM class | submodules/univer/packages/design/src/components/button/Button.tsx:29 |
disabled? | boolean | Disabled state of button Default false | submodules/univer/packages/design/src/components/button/Button.tsx:59 |
htmlType? | "button" | "reset" | "submit" | Set the original html type of button, see: MDN | submodules/univer/packages/design/src/components/button/Button.tsx:53 |
id? | string | - | submodules/univer/packages/design/src/components/button/Button.tsx:64 |
onClick? | (e : MouseEvent <HTMLButtonElement , MouseEvent >) => void | Set the handler to handle click event | submodules/univer/packages/design/src/components/button/Button.tsx:62 |
size? | ButtonSize | Set the size of button Default 'middle' | submodules/univer/packages/design/src/components/button/Button.tsx:44 |
style? | CSSProperties | Semantic DOM style | submodules/univer/packages/design/src/components/button/Button.tsx:32 |
type? | ButtonType | Set button type Default 'default' | submodules/univer/packages/design/src/components/button/Button.tsx:38 |