diff --git a/apps/docs/components/copy-button.tsx b/apps/docs/components/copy-button.tsx index 35a652d2eb..72a4b871ff 100644 --- a/apps/docs/components/copy-button.tsx +++ b/apps/docs/components/copy-button.tsx @@ -1,6 +1,7 @@ import {FC} from "react"; import {Button, ButtonProps} from "@nextui-org/react"; import {useClipboard} from "@nextui-org/use-clipboard"; +import {clsx} from "@nextui-org/shared-utils"; import {CheckLinearIcon, CopyLinearIcon} from "@/components/icons"; @@ -8,7 +9,7 @@ export interface CopyButtonProps extends ButtonProps { value?: string; } -export const CopyButton: FC = ({value, ...buttonProps}) => { +export const CopyButton: FC = ({value, className, ...buttonProps}) => { const {copy, copied} = useClipboard(); const handleCopy = () => { @@ -18,19 +19,22 @@ export const CopyButton: FC = ({value, ...buttonProps}) => { return (