0.0.0-alpha6 ā¢ Published 3 years ago
@hhgtech/hhg-engage-core v0.0.0-alpha6
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.
0.0.0-alpha6
3 years ago
0.0.0-alpha5
3 years ago
0.0.0-alpha4
3 years ago
0.0.0-alpha3
3 years ago
0.0.0-alpha2
3 years ago
0.0.0-alpha1
3 years ago