Stormbreaker Component Library
yarn add stormbreaker
npm install stormbreaker --save
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'
...
MIT