anooprav7 / stormbreaker-cl

Stormbreaker Component Library :metal:

Home Page:https://stormbreaker-v2.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License

MIT

About

Stormbreaker Component Library :metal:

https://stormbreaker-v2.netlify.com/

License:MIT License


Languages

Language:JavaScript 98.8%Language:HTML 1.2%