0.0.0-alpha6 ā€¢ Published 3 years ago

@hhgtech/hhg-engage-core v0.0.0-alpha6

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

HHG Engage Core components

Requirements

You project needs to have the following dependencies installed

  • react
  • react-dom
  • styled-components

Installation

yarn add @hhgtech/hhg-engage-core

Usage

  1. Wrap your components within ThemeProvider
  2. Import the stylesheet (includes reset CSS + a few global rules)
import '@hhgtech/hhg-engage-core/dist/styles/main.css'

import { ThemeProvider } from '@hhgtech/hhg-engage-core';

export default App() {
  return (
    <ThemeProvider>
      {/* ... */}
    </ThemeProvider>
  )
}

Then you can import and use components from the library

import { Button } from '@hhgtech/hhg-engage-core'

function MyButton() {
  return (
    <Button onClick={() => alert('clicked')}>Click Me</Button>
  )
}

šŸ‘‰ Find all available components in the storybook.