Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

button-ui-react

ZAnsder17MIT0.1.2TypeScript support: included

基于React的Button组件,包含了Hooks、单元测试、文档生成、NPM发布以及Travis CI等全流程学习DEMO

react, component, react-component, ui-component, button-component

readme

button-ui-react

基于React的Button组件,包含了Hooks、单元测试、文档生成、NPM发布以及Travis CI等全流程学习DEMO

📦 如何安装

npm install button-ui-react
yarn add button-ui-react

🔨 如何使用

import { Button } from 'button-ui-react';

const App = () => (
    <Button>默认按钮</Button>
);

添加组件样式:

import 'button-ui-react/dist/index.css';

📃 文件结构

bui-eact/
  README.md
  node_modules/
  tsconfig.json
  package.json
  .gitignore
  src/
    components/
      Button/
        styles/
          ...
        button.tsx
        button.test.tsx
        button.scss
      Alert/
        ...
    scss/
      _mixin.scss
      ...
      index.scss
    ...