UNPKG

@neuctra/ui

Version:

A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.

16 lines (15 loc) 660 B
import { default as React } from 'react'; export interface CopyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value"> { /** Text placed on the clipboard. */ value: string; /** Optional visible label next to the icon. */ label?: React.ReactNode; /** How long the "copied" state shows, in ms. */ feedbackDuration?: number; size?: "sm" | "md" | "lg"; onCopied?: (value: string) => void; /** 🔥 Full Customization */ iconClassName?: string; labelClassName?: string; } export declare const CopyButton: React.ForwardRefExoticComponent<CopyButtonProps & React.RefAttributes<HTMLButtonElement>>;