Skip to content

🎉 UI Components for your React Applications ( in progress... )

License

Notifications You must be signed in to change notification settings

gganbu-org/gganbu-ui

Repository files navigation

An UI library which used Panda CSS

NPM Downloads Bundle Size MIT License


What's inside?

This repository uses the following :

Packages

This repository contains the following packages :

  • @gganbu-org/react – Core components library
  • @gganbu-org/hooks – Collection of hooks for React Hooks for Gganbu UI components
  • @gganbu-org/utils – Collection of Common utilities for Gganbu UI
  • @gganbu-org/styled – Styled API for creating component styling
  • @gganbu-org/styled-utils – CSS utilities for the Gganbu Design System
  • @gganbu-org/theme – A preset for Panda CSS that contains Gganbu Design System's branding

Installation

To use Gganbu UI components, all you need to do is install the @gganbu-ui/react package and its peer dependencies:

# with pnpm
$ pnpm add @gganbu-org/react

# with Yarn
$ yarn add @gganbu-org/react

# with npm
$ npm i @gganbu-org/react

Usage

To start using the components, please follow these steps:

  1. Import the entry CSS in your src/app/layout.tsx file as follows:
import '@gganbu-org/styled/styles.css';

export default function RootLayout({
  children,
}) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  )
}

Optionally, you can wrap your application with the GganbuProvider so you can toggle between light and dark mode within your app.

  1. Now you can start using components the following snippet:
import { Button } from "@gganbu-org/react"

function Example() {
  return  <Button variant='solid'>Hello 🐼!</Button>
}

License

MIT License

About

🎉 UI Components for your React Applications ( in progress... )

Resources

License

Stars

Watchers

Forks

Packages

No packages published