Template
non ai theme
This commit is contained in:
1 parent
9d444cc0ec
commit
61df5e3dcc
28 files changed
+3347
-448
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { cn } from '../../utils/cn'
|
||||
|
||||
export type BadgeVariant = 'primary' | 'secondary' | 'destructive' | 'positive' | 'outline'
|
||||
|
||||
type BadgeProps = {
|
||||
children: ReactNode
|
||||
variant?: BadgeVariant
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function Badge({ children, variant = 'primary', className }: BadgeProps) {
|
||||
return (
|
||||
<span className={cn('badge', `badge-${variant}`, className)}>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user