@atexto/components
v1.0.4
Published
A skeleton to create your own React component library using Rollup, TypeScript, Styled Components and Storybook
Downloads
2
Readme
Atexto Components
How to use
- Install
@atexto/components
npm install @atexto/components --save
yarn add @atexto/components --save
- Wrap your entire app with
<Application/>
component
Example with CRA
import React from 'react'
import ReactDOM from 'react-dom'
import { Application } from '@atexto/components'
import App from './App'
const rootElement = document.getElementById('root')
ReactDOM.render(
<React.StrictMode>
<Application>
<App />
</Application>
</React.StrictMode>,
rootElement
)
Application contains the styled-components provider and has the ability to overwrite the base theme.