CopyButton

Copies a value to the user’s clipboard.

API Reference

CopyButton

({ value: valueProp, css: cssProp, className, ...props }: { value?: string | ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => string); css?: CSSObject; } & Omit<React.ComponentProps<"button">, "value">) => JSX.Element | null

Copies a value to the user's clipboard.

Parameters
Properties

value

string | ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => string) | undefined

css

CSSObject | undefined
Returns
Element | null