0.0.1-next-7fb0c14 • Published 5 days ago

@cerberus-design/react v0.0.1-next-7fb0c14

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days ago

Cerberus React

This is the React component library for Cerberus.

Installation

pnpm add @cerberus-design/react

Usage

import { Button } from '@cerberus-design/react'

function BasicExample() {
  return (
    <form>
      <Button type="submit">Submit</Button>
    </form>
  )
}

Basic Customization

import { Button } from '@cerberus-design/react'

function BasicExample() {
  return (
    <form>
      <Button palette="danger" usage="outline" type="button">Cancel</Button>
    </form>
  )
}

Advanced Customization

You can use Panda-CSS to customize the styles of the components.

import { Button } from '@cerberus-design/react'
import { css } from '../styled-system/css'

function CustomButton() {
  return (
    <Button
      className={css({
          backgroundColor: 'yellow',
          color: 'black',
          borderRadius: '0.5rem',
          '&:hover': {
            backgroundColor: 'black',
            color: 'yellow'
          },
        })}
    >
      Wu-Tang Forever
    </Button>
  )
}

Copyright (c) 2024 Digital University, All Rights Reserved