mdbutton
v0.0.11
Published
MDButton is an easy to use button component
Downloads
5
Readme
MDButton
A react button component
Properties
Actions
- onClick: Function - function to be called when the button is clicked
- onDoubleClick: Function - function to be called when the button is double clicked
- onMouseEnter: Function - function to be called when mouse enters the button area
- onMouseLeave: Function - function to be called when mouse leaves the button area
- onMouseUp: Function - function to be called when the button is clicked and held elsewhere, then release it above the object.
- onMouseDown: Function - function to be called when the button is clicked or then held elsewhere.
Order: onMouseDown -> onMouseUp -> onClick
Styling
- isDisabled: Bool - determine whether or not the button is disabled.
- theme: String['default', 'primary', 'danger'] - bootstrap like theme.
- href: String - url redirect after clicked.
- width: Number - width of the button
- height: Number - height of the button