Files
lingxi-web/src/components/common/LiveDataBadge.tsx
T

18 lines
477 B
TypeScript

import { Radio } from 'lucide-react'
import { cn } from '@/utils/cn'
export function LiveDataBadge({ className, text = '实时数据' }: { className?: string; text?: string }) {
return (
<span
className={cn(
'inline-flex items-center gap-1 rounded-full bg-emerald-50 px-2 py-0.5 text-[11px] font-medium text-emerald-700',
className,
)}
title="指标实时更新"
>
<Radio className="h-3 w-3" />
{text}
</span>
)
}