mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-06-18 06:39:32 +07:00
19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
|
import { cn } from "@/lib/utils";
|
||
|
import React from "react";
|
||
|
|
||
|
type Props = React.ComponentPropsWithoutRef<"code">;
|
||
|
|
||
|
const Code = ({ className, ...props }: Props) => {
|
||
|
return (
|
||
|
<code
|
||
|
className={cn(
|
||
|
"border border-base-content/20 px-4 py-3 rounded-lg font-mono block",
|
||
|
className
|
||
|
)}
|
||
|
{...props}
|
||
|
/>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Code;
|