UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

69 lines (53 loc) 1.17 kB
# Cerberus React This is the React component library for the Cerberus Design System. ## Installation ```bash pnpm add @cerberus/react ``` ## Usage ```typescript import { Button } from '@cerberus/react' function BasicExample() { return ( <form> <Button type="submit">Submit</Button> </form> ) } ``` ### Basic Customization ```typescript import { Button } from '@cerberus/react' function BasicExample() { return ( <form> <Button palette="danger" usage="outline" type="button">Cancel</Button> </form> ) } ``` ### Advanced Customization You can use [Panda-CSS](https://panda-css.com/) to customize the styles of the components. ```typescript import { Button } from '@cerberus/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_