You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
370 B

import { cn } from "@/lib/utils";
interface CodeProps extends React.HTMLAttributes<HTMLPreElement> {}
export function Code({ className, children, ...props }: CodeProps) {
return (
<pre
className={cn(
"rounded-lg bg-muted p-4 overflow-x-auto text-sm",
className
)}
{...props}
>
<code>{children}</code>
</pre>
);
}