0.0.1 • Published 6 years ago

@origamijs/zen-button v0.0.1

Weekly downloads
1
License
-
Repository
-
Last release
6 years ago

Button

The button element is a styled button with options of adding an icon, loading state, and size.

Properties

PropTypeDescriptionOptionalDefault
colorstring
disabledtrue false
hollowtrue false
iconstring false
iconrighttrue false
loadingtrue false
renderCompletereference Promise [object Object]Returns a promise which resolves after the element next renders. The promise resolves to `true` if the element rendered and `false` if the element did not render. This is useful when users (e.g. tests) need to react to the rendered state of the element after a change is made. This can also be useful in event handlers if it is desireable to wait to send an event until after rendering. If possible implement the `_didRender` method to directly respond to rendering within the rendering lifecycle.
sizestring

CSS Properties

PropDescription
--btn-paddingPadding for the button
--btn-heightHeight of the button
--btn-border-radiusBorder radius of the button
--btn-bgBackground color of the button