1.0.0 • Published 6 years ago

b-urumqi-button v1.0.0

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

b-urumqi-button


Button UI component for React

Features

  • Supports IE9, IE9+, Chrome, Firefox & Safari

Install

npm install --save b-urumqi-button
yarn add --save b-urumqi-button

Usage

import 'b-urumqi-button/assets/index.less';

import React from 'react';
import ReactDOM from 'react-dom';
import Button from 'b-urumqi-button';

ReactDOM.render(
    <div>
      <p>button</p>
      <Button 
        name={"默认按钮"}
        className={"initBtn"}
        style={{ background: "red" }}
        handleClick={() =>
            console.log("welcome")
        }
      />
  </div>,
  document.getElementById('__react-content')
);

API

Button

NameTypeDefaultDescription
namestring | Set button label.
classNamestringAdditional CSS class for the root DOM node.
styleObject{}Set style.
handleClickFunctionNOOPclick the button event.

Development

npm install
npm start

Example

npm start and then go to http://localhost:8004/examples/

License

b-urumqi-button is released under the MIT license.