RB Styled components
Source of truth for UX documentation and web library for styled components
Getting Started
Installing
npm install
Usage
To use the components, just import them in your app like so:
import React from 'react'
import { MainButton } from 'rb-styled-components'
const Example = () => (
<MainButton type="primary">Example</MainButton>
)
export default Example
Building
To build the library:
npm run build
To build the docs:
npm rn build:docs
Hosting
Library is available on root:
./index.js
the docs are available at:
./dist/docs/index.html
Running
To start the documentation where you can show case the elements from lib:
npm start
Should be available at:
http://localhost:1234