GithubHelp home page GithubHelp logo

bee-button-group's Introduction

bee-button-group

npm version Build Status

Coverage Status

react bee-button-group component for tinper-bee

可组合按钮的组合组件

使用

使用单独的bee-button-group包

组件引入

先进行下载bee-button-group包

npm install --save bee-button-group

组件调用

import ButtonGroup from 'bee-button-group';
import Button from 'bee-button';
ReactDOM.render(
    <ButtonGroup vertical>
        <Button size="lg" type="primary">按钮一</Button>
        <Button size="lg" type="primary">按钮二</Button>
        <Button size="lg" type="primary">按钮三</Button>
    </ButtonGroup>
    , document.getElementById('target'));

样式引入

  • 可以使用link引入dist目录下ButtonGroup.css
<link rel="stylesheet" href="./node_modules/build/bee-button-group.css">
  • 可以在js中import样式
import "./node_modules/src/ButtonGroup.scss"
//或是
import "./node_modules/build/bee-button-group.css"

使用tinper-bee组件库

(tinper-bee组件库使用方法)[]

API

参数 说明 类型 默认值
vertical 是否垂直 boolean false
justified 水平均分 boolean false
block 是否充满父元素(只有垂直排列时,可使用) boolean false
className 类名 string ''
list 按钮信息列表(如果你不想自己写按钮,也可以写一些描述信息,自动生成按钮) array(要有key,title,其它Button支持的props) []

setup develop environment

$ git clone https://github.com/tinper-bee/bee-button-group
$ cd bee-button-group
$ npm install -g bee-tools
$ npm install
$ npm run dev

bee-button-group's People

Contributors

lucian55 avatar jonyshi avatar ahua52 avatar yangchch6 avatar boyuzhou avatar

Watchers

James Cloos avatar 郭永峰 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.