Go to file
2019-02-14 17:21:14 +08:00
.github chore: add COMMIT_CONVENTION.md 2018-04-13 11:23:04 +08:00
demo fix(city.less): props problem about others and the style of city 2018-05-08 16:10:24 +08:00
dist style(gulpfile.js): add css compress 2019-02-14 17:16:33 +08:00
example docs(readme.md): name change and add QR code 2018-05-08 12:25:13 +08:00
src chore: del invalid comments 2018-12-21 16:54:14 +08:00
test build(test and dist directory): build code 2018-05-07 16:21:43 +08:00
.babelrc chore: init project 2018-04-10 18:38:45 +08:00
.editorconfig chore: init project 2018-04-10 18:38:45 +08:00
.eslintignore chore: init project 2018-04-10 18:38:45 +08:00
.eslintrc.js chore: init project 2018-04-10 18:38:45 +08:00
.gitignore chore: init project 2018-04-10 18:38:45 +08:00
CHANGELOG.md chore(release): 1.0.2 2019-02-14 17:21:14 +08:00
commitlint.config.js chore: init project 2018-04-10 18:38:45 +08:00
gulpfile.js style(gulpfile.js): add css compress 2019-02-14 17:16:33 +08:00
LICENSE chore: add CONTRIBUTING.md,LICENSE 2018-04-12 19:01:35 +08:00
package-lock.json chore(release): 1.0.2 2019-02-14 17:21:14 +08:00
package.json chore(release): 1.0.2 2019-02-14 17:21:14 +08:00
README.md chore(readme.md): update docs ref 2018-05-10 18:56:10 +08:00
webpack.config.dev.js chore: init project 2018-04-10 18:38:45 +08:00
webpack.config.prod.js chore: init project 2018-04-10 18:38:45 +08:00
yarn.lock chore: unified package-lock.json and yarn.lock 2018-05-07 17:13:11 +08:00

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 git@github.com: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.