0.0.1-alpha.2 • Published 3 years ago

@belleui/belle-button v0.0.1-alpha.2

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

@belleui/belle-button

Preview

screent shot

Demo

Click to view demo

Install

npm install @belleui/belle-button

Useage

<belle-button>Default</belle-button>
<belle-button type="primary">Primary</belle-button>
<belle-button outline>Outline</belle-button>
<belle-button disabled>Disabled</belle-button>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalse是否禁用按钮
outlineoutlinebooleanfalse只显示外边框
loadingloadingbooleanfalse是否显示loading
typetypestring"default"按钮的类型

Slots

NameDescription
默认插槽,按钮文字或者其他html标签

CSS Custom Properties

PropertyDefaultDescription
--background-color背景颜色
--border-colorborder颜色
--border-radis"6px"圆角
--font-color按钮字体颜色
--hover-background-colorhover时按钮背景颜色
--hover-border-colorhover时border的颜色
--hover-font-color"--font-color"hover时字体的颜色