Skip to main content

Interface: CopyButtonProps

@arolariu/components


@arolariu/components / CopyButtonProps

Interface: CopyButtonProps

Defined in: components/ui/copy-button.tsx:16

Represents the configurable props for the CopyButton component.

Remarks

Extends native <button> attributes while reserving children for the internal icon swap and exposing a required clipboard value.

Extends

  • Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">

Properties

value

value: string

Defined in: components/ui/copy-button.tsx:20

The text value copied to the clipboard when the button is activated.

Overrides

Omit.value


timeout?

optional timeout?: number

Defined in: components/ui/copy-button.tsx:26

Duration in milliseconds to show the success state before restoring the copy icon.

Default

2000
// was this page useful?