stormbreaker
v0.2.2
Published
Stormbreaker React Component Library
Downloads
38
Maintainers
Readme
Stormbreaker
Stormbreaker Component Library
Install
yarn add stormbreaker
npm install stormbreaker --save
Usage
The components need a theme to be set through the ThemeProvider
at the root level. We provide a default theme along with the components in the package named theme
as shown below.
We also provide some globalStyles
styles in the package (Recommended).
import { ThemeProvider, Global, theme, globalStyles } from "stormbreaker"
export default () => (
<ThemeProvider theme={theme}>
<Global styles={globalStyles} />
// Code starts here Eg. <App />
</ThemeProvider>
)
Then, to include components from stormbreaker
import React from 'react'
import { Button, Checkbox } from 'stormbreaker'
...
Storybook
License
MIT