mirror of
https://github.com/vernu/textbee.git
synced 2026-02-20 15:44:31 -05:00
17 lines
370 B
TypeScript
17 lines
370 B
TypeScript
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>
|
|
);
|
|
} |