Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA Copy menu with a Copy as submenu of formats whose text is built only when chosen and whose success or failure is announced after the menu closes.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use this for tables, query results and code blocks where people need the data in another tool in a specific format.
Do not use it for a single format (a plain copy button is simpler) or for secrets, which should not go on the clipboard.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
formats | { id, label, serialize }[] | - | Available formats; the first is used by the plain Copy item. |
onCopied | (format) => void | - | Called after a successful copy. |
role="status" line beside the trigger ("Copied as CSV"), so it is heard even though the menu has closed.| Key | Action |
|---|---|
| ArrowRight on Copy as | opens the formats |
| ArrowLeft | back to the parent menu |
| Enter | copies |
The pattern ships a Testing Library test (menu-copy-as.test.tsx) that covers copying in the first format, the submenu with the keyboard, lazy serialising and a failed copy.