Skip to content

anooprav7/stormbreaker-cl

Repository files navigation

Stormbreaker

npm version issues contributors core size core gzip size GitHub license

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

Stormbreaker Storybook Docs

MIT