@atexto/components

A skeleton to create your own React component library using Rollup, TypeScript, Styled Components and Storybook

Usage no npm install needed!

<script type="module">
  import atextoComponents from 'https://cdn.skypack.dev/@atexto/components';
</script>

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.