# pile.js
**Repository Path**: DaLangYangFan_admin/pile.js
## Basic Information
- **Project Name**: pile.js
- **Description**: Pile.js 是滴滴开发的基于React的移动端开发组件库。 轻量,易用,包含52个交互功能,支持多语言与自定义皮肤
- **Primary Language**: JavaScript
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 8
- **Created**: 2019-11-06
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# pile [](http://commitizen.github.io/cz-cli/) [](https://www.npmjs.com/package/pile)
[Pile](https://www.npmjs.com/package/pile-ui) Components build with [React](http://facebook.github.io/react/).
## Mobile Demo
[Mobile Demo](https://didi.github.io/pile.js/docs/)

## Installation
With [npm](http://npmjs.com/):
If React is not installed
```
npm install --save react react-dom
```
With React Installed
```
npm install pile-ui --save
```
[](https://www.npmjs.com/package/pile-ui)
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:
```javascript
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 (
);
}
}
ReactDOM.render((
), document.getElementById('container'));
```
## Development
```shell
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](.github/CONTRIBUTING.md) for guidelines.
## License
pile is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file.