Skip to content

Button-DEMO


vue
<fv-button borderRadius="3"></fv-button>

Button With Icon


vue
<fv-button icon="CalculatorAddition" theme="dark">Add</fv-button>

Button Customize


vue
<fv-button icon="CalculatorAddition" :isBoxShadow="true">Add</fv-button>
vue
<fv-button icon="CalculatorAddition" theme="dark" background="linear-gradient(to right, #000046, #1cb5e0)" borderRadius="3" :isBoxShadow="true">Add</fv-button>

Customize Reveal Border

vue
<fv-button icon="CalculatorAddition" theme="dark" background="#000046" revealBorderColor="#1cb5e0" revealBackgroundColor="rgba(28, 181, 226, 0.3)" borderRadius="3" borderWidth="3" :isBoxShadow="true">Add</fv-button>

Button Disabled


vue
<fv-button disabled icon="CalculatorAddition">Add</fv-button>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
iconStringNoN/AIcon with Fabric-Icon
foreground[string(color)]NoN/AButton 前景色
background[string(color)]NoN/AButton 背景色
borderRadiusNumberNo3Button 圆角大小
borderColor[string(color)]NoN/AButton 边框颜色
fontSizeNumberNoN/AButton 字体大小
fontWeightStringNonormalButton 字体粗细度
revealBorderColor[string(color)]NofalseButton Reveal 边框颜色
revealBackgroundColor[string(color)]NofalseButton Reveal 背景颜色
isBoxShadowBooleanNofalse开启Button阴影
disabledBooleanNofalseDisabled button
borderWidthNumberNo1Button 边框大小
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
clickeventButton onclick

Slot


  1. Default
javascript
<fv-button>
    <div></div>
</fv-button>

MIT Licensed