0.6.3 • Published 4 years ago

@bulma-web/button v0.6.3

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

button

bw-button is an easy customizable button with css custom properties, styling for bulma is included

Usage

installation

npm i -S @bulma-web/button
// or
yarn add -S @bulma-web/button
import '@bulma-web/button'

Example

<bw-button type="is-primary">Button Text</bw-button>

API

PropertyDescriptionTypeValues
typeType (color) of the button, optionalStringis-white, is-light, is-black, is-dark, is-text, is-primary, is-link, is-info, is-success, is-warning, is-danger
sizeSize of the button, optionalStringis-small, is-normal, is-medium, is-large
displaydisplay of the button normal or full-widthStringis-fullwidth
outlinedSet the button to outlined versionBooleandefault false
invertedSet the button inverted, for use on a colored backgroundBooleandafault false
loadingSet the button to the loading stateBooleandefault false
disabledSet the button to the disabled stateBooleandefault false
roundedMake the button roundedBooleandefault false

Custom CSS Variables for customization

VariableDescriptionType
--button-colorcolorcolor code
--button-background-colorbackground colorcolor code
--button-border-colorborder colorcolor code
--button-border-widthborder sizecolor code
--button-padding-verticalvertical paddingpx units
--button-padding-horizontalhorizontal paddingpx units
--button-hover-colorcolor on hovercolor code
--button-hover-border-colorborder color on hovercolor code
--button-focus-colorcolor in focused statecolor code
--button-focus-border-colorborder color in focused statecolor code
--button-focus-box-shadow-sizeshadow size when in focused statebox shadow notation
--button-active-colorcolor in active statecolor code
--button-active-border-colorborder color in active statecolor code
--button-text-colortext colorcolor code
--button-text-hover-colortext color on hovercolor code
--button-disabled-background-colorbackground color when disabledcolor code
--button-disabled-border-colorborder color when disabledcolor code
-button-disabled-shadowdisabled shadowstring
--button-disabled-opacityopacity when disabledunitless
--button-static-colorstatic colorcolor code
--button-static-background-colorstatic background colorcolor code
--button-static-border-colorstatic border colorcolor code
0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago