Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

601 B
Raw Blame
import { LabelDot } from "@/components/settings/labels/label-dot";
import { cn } from "@/lib/cn";

type LabelPillProps = {
  name: string;
  color: string;
  className?: string;
};

export function LabelPill({ name, color, className }: LabelPillProps) {
  return (
    <span
      className={cn(
        "inline-flex h-5.5 min-w-0 max-w-full items-center gap-1.5 rounded-sm border border-input bg-background px-2 font-medium text-foreground text-xs dark:bg-input/32",
        className,
      )}
    >
      <LabelDot color={color} />
      <span className="truncate">{name}</span>
    </span>
  );
}