🏷️ added tags system
This commit is contained in:
20
components/blog/tag-badge.tsx
Normal file
20
components/blog/tag-badge.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
interface TagBadgeProps {
|
||||
count: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function TagBadge({ count, className = '' }: TagBadgeProps) {
|
||||
return (
|
||||
<span
|
||||
className={`
|
||||
inline-flex items-center justify-center
|
||||
px-2 py-1 font-mono text-xs font-bold
|
||||
bg-cyan-900 border border-cyan-700
|
||||
text-cyan-300
|
||||
${className}
|
||||
`}
|
||||
>
|
||||
{count}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user