No Problemo Muchacho

    mdbutton

    0.0.11 • Public • Published

    MDButton

    BuildStatus Dependency Status GitHub version GitHub issues GitHub license

    NPM

    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

    Install

    npm i mdbutton

    DownloadsWeekly Downloads

    7

    Version

    0.0.11

    License

    MIT

    Last publish

    Collaborators

    • zhenghe