Skip to content
/ pile.js Public
forked from didi/pile.js

pile.js components build with React.

License

Notifications You must be signed in to change notification settings

anwde/pile.js

Repository files navigation

pile Commitizen friendly license Apache 2.0

Pile Components build with React.

Mobile Demo

Mobile Demo

pile

Installation

With npm:

If React is not installed

npm install --save react react-dom

With React Installed

npm install pile-ui --save

pile

import css

import 'pile/dist/styles/pile.min.css'

import Pile

// 引用方式一
import Pile from 'pile'
const {Button} = Pile

// 引用方式二
import {Button} from 'pile'

// 单个组件引用方式 (推荐使用,节省无用组件调用)
import Button from 'pile/dist/components/button'

Example

We have several examples on the documentation. Here is the first one to get you started:

import React, { Component } from 'react';
import ReactDOM from 'react-dom';

//import pile
import Pile from 'pile'
import 'pile/dist/styles/pile.min.css'
const {Button} = Pile

class App extends Component {
    render() {
        return (
            <Button>hello Pile</Button>
        );
    }
}

ReactDOM.render((
    <App/>
), document.getElementById('container'));

Development

git clone [email protected]:didi/pile.js.git
cd pile.js
npm install
npm start

Contributing

Welcome to contribute by creating issues or sending pull requests. See Contributing Guide for guidelines.

License

pile is licensed under the Apache License 2.0. See the LICENSE file.

About

pile.js components build with React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 51.5%
  • JavaScript 48.2%
  • HTML 0.3%