@univerjs/design v0.5.0-beta.1Docs


Interface: IButtonProps

Properties

PropertyTypeDescriptionDefined in
block?booleanOption to fit button width to its parent width Default falsesubmodules/univer/packages/design/src/components/button/Button.tsx:50
children?ReactNode-submodules/univer/packages/design/src/components/button/Button.tsx:26
className?stringSemantic DOM classsubmodules/univer/packages/design/src/components/button/Button.tsx:29
disabled?booleanDisabled state of button Default falsesubmodules/univer/packages/design/src/components/button/Button.tsx:59
htmlType?"button" | "reset" | "submit"Set the original html type of button, see: MDNsubmodules/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>) => voidSet the handler to handle click eventsubmodules/univer/packages/design/src/components/button/Button.tsx:62
size?ButtonSizeSet the size of button Default 'middle'submodules/univer/packages/design/src/components/button/Button.tsx:44
style?CSSPropertiesSemantic DOM stylesubmodules/univer/packages/design/src/components/button/Button.tsx:32
type?ButtonTypeSet button type Default 'default'submodules/univer/packages/design/src/components/button/Button.tsx:38