Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 20x 30x | import * as React from 'react'
import { cn } from 'cn'
// The unread-mention counter of the prototype: a small gradient pill.
export const CountBadge = ({ className, ...props }: React.ComponentProps<'span'>) => {
return (
<span
data-slot="count-badge"
className={cn(
'grid h-5 min-w-5 place-items-center rounded-full bg-linear-to-br from-badge-a to-badge-b px-1.5 text-2xs font-bold text-white shadow-badge',
className,
)}
{...props}
/>
)
}
|