@hhgtech/hhg-engage-core
v0.0.0-alpha6
Published
## Requirements
Downloads
2
Readme
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
- Wrap your components within
ThemeProvider
- 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.