Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

pile-ui

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pile-ui

pile components build with React.

latest
Source
npmnpm
Version
2.0.6-alpha.0
Version published
Weekly downloads
7
-36.36%
Maintainers
2
Weekly downloads
 
Created
Source

Pile Commitizen friendly license Apache 2.0

A lightweight mobile components library build with React.

pile

Docs

View the docs here

1.x docs

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

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.

Keywords

pile

FAQs

Package last updated on 24 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts