Getting Started
Frigobar is a simple component library built with React and styled-components.
Install
You can install Frigobar using either of the methods below.
For npm users:
npm install @frigobar/core styled-components --save
For Yarn users:
yarn add @frigobar/core styled-components
styled-components is a peerDependency of all frigobar packages, so, make sure to install styled-components aswell.
Usage
It’s very easy to start using frigobar in your react application:
import React from 'react';import ReactDOM from 'react-dom';import { ThemeProvider } from 'styled-components';import { theme, Button } from '@frigobar/core';function App() {return (<ThemeProvider theme={theme}><Button>Button</Button></ThemeProvider>);}ReactDOM.render(<App />, document.getElementById('root'));