1.2.1 • Published 5 years ago

dile-rounded-button v1.2.1

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

\

Web component to implement a styled button, with background color and rounded corners. Based on LitElement.

Go to DEMOS page!

Properties

  • disabled: Boolean property to make the button disabled.

Styles

You can customize it using CSS Custom Properties.

Custom propertyDescriptionDefault
--dile-rounded-button-border-radiusButton border radius30px
--dile-rounded-button-background-colorButton background color#e74c3c
--dile-rounded-button-heightHeight of the button30px
--dile-rounded-button-text-colorButton text color#fff
--dile-rounded-button-hover-background-colorButton hover background color#303030
--dile-rounded-button-hover-text-colorButton hover text color#fff
--dile-rounded-button-animation-timeHover button color animation0.3s
--dile-rounded-button-padding-xHorizontal padding20px
--dile-rounded-button-padding-yVertical padding5px
--dile-rounded-button-text-transformText transformuppercase
--dile-rounded-button-font-sizeButton text size1em
--dile-rounded-button-font-weightButton font weightnormal

Events

This component dispatch a custom event when the user clicks the button

  • dile-rounded-button-click: there was a click in the button. If the button is in disabled state, the component do not dispatch the event.