@yoss-org/yoss-ui
v0.2.53
Published
Yoss UI Components Library
Downloads
20
Keywords
Readme
yoss-ui
Yoss UI Components Library
Summary
Install
npm install --save yoss-ui
Usage
import React, { Component } from 'react'
import { MyComponent } from 'yoss-ui'
class Example extends Component {
render() {
return <MyComponent />
}
}
Contributing
UI Component explorers
Storybook and Styleguidist are used to build YOSS ui components in isolation.
Both are configured with hot reloading, providing great tool for local development / testing / UI checking.
Storybook
- Build storybook
npm run storybook:build
. - Run storybook
npm run storybook
- Open
http://localhost:9009
Styleguidist
- Build styleguide
npm run styleguide:build
. - Run styleguide
npm run styleguide
- Open
http://localhost:6060
How to group CSS properties
Group CSS properties by type (Nicolas Gallagher's Idiomatic CSS)
.selector {
/* Positioning */
position: absolute;
z-index: 10;
top: 0;
right: 0;
bottom: 0;
left: 0;
/* Display & Box Model */
display: inline-block;
overflow: hidden;
box-sizing: border-box;
width: 100px;
height: 100px;
padding: 10px;
border: 10px solid #333333;
outline: 0;
margin: 10px;
/* Fonts */
font-family: Arial;
font-size: 12px;
line-height: 16px;
font-weight: 400;
color: #cccccc;
/* Other */
background: #000;
cursor: pointer;
text-align: right;
}
License
MIT ©