11 lines · 352 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 bg-gray-800 px-1.5 py-0.5 font-mono text-xs text-accent-300", className)}>
      {children}
    </code>
  );
}