b-rc

0.8.0 • Public • Published

B-RC

B-RC Components build with React and Ant Design.

B-RC Components design for MiFanFan Desktop front-end projects

Install

With npm

npm install b-rc --save

With yarn

yarn add b-rc

Usage

Use modularized antd

  • Use babel-plugin-import (Recommended)

    // .babelrc or babel-loader option
    {
      "plugins": [
        ["import", { libraryName: "b-rc", style: "css" }] // `style: true` for less
      ]
    }

    Then you can import components from antd, equivalent to import manually below.

    // import js and css modularly, parsed by babel-plugin-import
    import { Button } from 'b-rc';
  • Manually import

    import Button from 'b-rc/lib/button';  // for js
    import 'b-rc/lib/button/style';         // that will import less

Readme

Keywords

Package Sidebar

Install

npm i b-rc

Weekly Downloads

19

Version

0.8.0

License

MIT

Unpacked Size

1.01 MB

Total Files

516

Last publish

Collaborators

  • freeman007
  • mhh
  • strong9527