Giter Club home page Giter Club logo

pile.js's Introduction

Pile Commitizen friendly license Apache 2.0

A lightweight mobile components library build with React.

pile

Docs

View the docs here

1.x docs

Components

Existing components of pile 2.0

Component Package Author
Button @pile-ui/button miaocai
Icon @pile-ui/icon miaocai
Switch @pile-ui/switch xilixjd
Toast @pile-ui/toast susan
InputFiled @pile-ui/inputFiled hpfree
Alert @pile-ui/alert gaiazhang
Radio @pile-ui/radio abiaoGit

Dependences

Installation

npm i pile-ui@latest --save

// import css
npm i @pile-ui/theme-default

import component

// style1
import {Button} from 'pile-ui'

// single component
import Button from '@pile-ui/button'

import all css

import '@pile-ui/theme-default/lib/index.min.css'

import single css

import '@pile-ui/theme-default/lib/button.min.css'

Example

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

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Button } from 'pile-ui'
import '@pile-ui/theme-default/lib/index.min.css'

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

create new module

lerna create  @pile-ui/xx packages

css build

cd packages/theme-default
npm run build
npm run build

Build single package by running the following:

npm run build -- --scope "@pile-ui/button"

Build multiple packages where scope is a glob expression:

npm run build -- --scope "{@pile-ui/button,@pile-ui/icon}"

Watch all filters (auto-rebuild upon src changes):

npm run watch

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.

pile.js's People

Contributors

renmm avatar le0zh avatar weihongyu12 avatar yansenfe avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.