0.1.8 • Published 7 years ago
bilo-ui v0.1.8
bilo-ui
A React component library for frontend web dev.
Live Demo
Get started
- Installation
npm install bilo-ui --save-dev- Example Usage:
import { Button, Card, If } from 'bilo-ui'
export const MyComponent = (props) => (
<Card className='padded'>
<If truthy={true}>
<Button className='primary' onClick={
() => alert('bilo-ui button clicked')
}>
Show dialog
</Button>
</If>
<If truthy={false}>
<Button className='warning' onClick={
() => alert('bilo-ui button clicked')
}>
Button should be invisible
</Button>
</If>
</Card>
)Setting up
git clone http://github.com/bilo-io/bilo-uicd ./bilo-uiyarnyarn devyarn dev:docs
dev:docsrecompiles the preview of the package, run on http://localhost:3030devrecompiles the packagebilo-uiafter each edit, useful when linking this package as a dependency locally
Symlinking
yarn linkin this repositoryyarn dev
NOTE: To link to your the local copy of
bilo-ui, runyarn link bilo-uiin your project
Building & Releasing
yarn buildyarn build:docsyarn bumpyarn deploy
yarn build:allbuilds both the preview (docs) and the npm packageTODO: semver bumping for release process