@codedreams/react-elements

Code Dreams Components Library For React Web

Usage no npm install needed!

<script type="module">
  import codedreamsReactElements from 'https://cdn.skypack.dev/@codedreams/react-elements';
</script>

README

@codedreams/react-elements

Welcome to the @codedreams/elements package here you will find out all of our components shared with the community

Whats the idea of this repository

Its a place that we can share a little bit of our code base and show how we work on our projects with our components!

How can i use the library?

Here's how you add our dependencie to your project @codedreams/reactjs-elements

  1. depend on it:
yarn add @codedreams/reactjs-elements
  1. import the ThemeProvider from styled-components and provide the Theme following the ThemeType definition.
import { StylesProvider } from '@material-ui/core/styles';
import { ThemeProvider } from 'styled-components';
import { ThemeType } from '@codedreams/react-elements';

const theme: ThemeType = { ... };

<ThemeProvider theme={theme}>
 <StylesProvider injectFirst>
      <App />
  </StylesProvider>
</ThemeProvider>
  1. use it
import { Button } from '@codedreams/react-elements';