Skip to content
Cynco UI

Components · Actions

CopyButton

Copy-to-clipboard buttons for IDs and keys, with a "Copied!" tooltip.

import { CopyButton } from "@cynco-labs/ui";

Example

Use

CopyButton for an ID shown as a chip, CopyIconButton for an icon-only copy next to text, MiniCopyButton for inline mono IDs in tables (icon reveals on hover).

Props

text to copy; displayText (Mini) to shorten what is shown; side for the tooltip.

Notes

IDs render in the mono family.

Source Demo source Markdown