An open API service indexing awesome lists of open source software.

https://github.com/sagarhani/component-library

📚 React Component Library
https://github.com/sagarhani/component-library

component-library react styled-components styled-system

Last synced: about 2 months ago
JSON representation

📚 React Component Library

Awesome Lists containing this project

README

          

# React Component Library

> 📚 React based component library

## Installation

```bash
npm i @sagarhani/component-library react react-dom styled-components styled-system
```

or

```bash
yarn add @sagarhani/component-library react react-dom styled-components styled-system
```

## Set up Provider

For Component library to work correctly, you need to set up the `ThemeProvider` at the root of your application.

Go to the root of your application and do this:

```js
import * as React from 'react';

// 1. import `ThemeProvider` component
import { ThemeProvider } from '@sagarhani/component-library';

function App({ Component }) {
// 2. Use at the root of your app
return (



);
}
```