stash-ui

v0.9.56
Stash Invest’s react component library

Stash UI

⚛️💅 A UI library of React components, built with styled-components and styled-system.

NPM

Install

yarn add stash-ui

Setting up a new repo to use stash-ui

  1. Include the ThemeProvider and GlobalStyle component in your main component to import fonts, a css-reset, and some basic styles:
import { ThemeProvider, GlobalStyle } from 'stash-ui';

class App extends Component {
  render() {
    return (
      <ThemeProvider>
        <GlobalStyle withFonts />
        {this.props.children}
      </ThemeProvider>
    );
  }
}
  1. Start importing components!
import React from 'react';
import { PrimaryButton } from 'stash-ui';

export default props => {
  render() {
    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

How to contribute to stash-ui

License

MIT © StashInvest

npm i stash-ui

Metadata

  • MIT
  • >=10
  • Stash Financial, Inc.
  • released 12/5/2019

Downloads