Installation

Requirement

Ensure your have the latest version of NodeJS, and a package manager: NPM or Yarn.

Install

1
$ yarn add @kubed/components @kubed/hooks @kubed/icons
2
# or
3
$ npm i @kubed/components @kubed/hooks @kubed/icons

Usage

  1. Wrap your application with the KubedConfigProvider:
1
import { CssBaseline, KubedConfigProvider } from '@kubed/components';
2
3
const Application = () => (
4
<KubedConfigProvider>
5
<CssBaseline /> // ---> Normalize styles
6
<AppComponent /> // ---> Root of your application
7
</KubedConfigProvider>
8
)
  1. Use components like so:
1
import { Button } from "@kubed/components"
2
3
const MyComponent = () => <Button>Click Me</Button>