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
- Host: GitHub
- URL: https://github.com/sagarhani/component-library
- Owner: sagarhani
- License: mit
- Created: 2020-07-04T14:46:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T10:40:18.000Z (over 3 years ago)
- Last Synced: 2025-11-18T01:03:14.437Z (7 months ago)
- Topics: component-library, react, styled-components, styled-system
- Language: TypeScript
- Homepage: https://sagarhani.github.io/component-library/
- Size: 3.62 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 (
);
}
```