To get started, install the library by running the following command: npm install @glair/ui
- Import the
@glair/ui/dist/style.css
file in your React project's entry component before any other CSS files. - Import the desired components from the library into your project components.
- In NextJS, this component library is currently limited to use within client-side components only.
- To activate dark mode, apply the dark class to the
<html>
element. - For a complete list of available components, check out the Storybook Page.
import {Button} from "@glair/ui"
export const App = () => (
return <Button variant="link-primary" />
)