mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Improve tag display
This commit is contained in:
5
frontend/src/components/badge.tsx
Normal file
5
frontend/src/components/badge.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import {ReactNode} from "react";
|
||||
|
||||
export default function Badge({children, className, onClick }: { children: ReactNode, className?: string, onClick?: () => void }) {
|
||||
return <span className={`badge badge-primary text-sm ${className}`} onClick={onClick}>{children}</span>
|
||||
}
|
Reference in New Issue
Block a user