Stash UI
⚛️💅 A UI library of React components, built with styled-components and styled-system.
Install
yarn add stash-ui
stash-ui
Setting up a new repo to use - Include the
ThemeProvider
andGlobalStyle
component in your main component to import fonts, a css-reset, and some basic styles:
import ThemeProvider GlobalStyle from 'stash-ui'; { return <ThemeProvider> <GlobalStyle /> thispropschildren </ThemeProvider> ; }
- Start importing components!
import React from 'react';import PrimaryButton from 'stash-ui'; { return <PrimaryButton>Click me</PrimaryButton>; }
Publishing a release
See https://github.com/StashInvest/stash-react-ui/wiki#release-process
Development
To run the styleguide
yarn styleguide
Contributing
License
MIT © StashInvest