11 lines · 357 B
import { cn } from "~/utils/cn";

/** Inline code / ref chip (branch names, paths, shortcuts). */
export function Code({ children, className }: { children: React.ReactNode; className?: string }) {
  return (
    <code className={cn("rounded-sm bg-kumo-tint px-1.5 py-0.5 font-mono text-xs text-kumo-strong", className)}>
      {children}
    </code>
  );
}