0.1.62 • Published 2 years ago

test-ebd-react-components v0.1.62

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@eyebuydirect/ebd.front.lib

It is a react UI library.

Documentation

Environment Support

FirefoxChromeSafari
last 2 versionslast 2 versionslast 2 versions

Installation

npm

npm install @eyebuydirect/ebd.front.lib --save

yarn

yarn add @eyebuydirect/ebd.front.lib

Usage

import { Button, Tooltip } from '@eyebuydirect/ebd.front.lib'

const App = () => (
  <>
    <Button type="primary">PRESS ME</Button>
    <Tooltip title="prompt text" placement="top" trigger="hover">tooltip</Tooltip>
  </>
);

And import style manually:

import '@eyebuydirect/ebd.front.lib/dist/ebd.front.lib.css';

按需加载

默认支持基于 ES modules 的 tree shaking,对于 js 部分,直接引入 import { Button } from '@eyebuydirect/ebd.front.lib' 就会有按需加载的效果。

style按需加载,使用babel-plugin-import插件进行配置

TypeScript

@eyebuydirect/ebd.front.lib is written in TypeScript with complete definitions, check Use in TypeScript to get started.

Development

$ git clone git@github.com:eyebuydirect/ebd.front.lib.git
$ cd ebd.front.lib
$ npm install
$ npm run storybook