@cerberus-design/react
Version:
The Cerberus Design React component library.
69 lines (53 loc) • 1.17 kB
Markdown
This is the React component library for the Cerberus Design System.
```bash
pnpm add @cerberus/react
```
```typescript
import { Button } from '@cerberus/react'
function BasicExample() {
return (
<form>
<Button type="submit">Submit</Button>
</form>
)
}
```
```typescript
import { Button } from '@cerberus/react'
function BasicExample() {
return (
<form>
<Button palette="danger" usage="outline" type="button">Cancel</Button>
</form>
)
}
```
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_