The CopyButton component provides a one-click solution for copying text to the clipboard. It shows visual feedback when text is successfully copied.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/raystack/apsara/llms.txt
Use this file to discover all available pages before exploring further.
Usage
With code snippet
Custom timeout
Disable icon reset
API reference
CopyButton
Extends all props from IconButton.The text to copy to clipboard when the button is clicked.
Time in milliseconds before the icon resets to the copy icon after successful copy.
Whether to reset the icon back to the copy icon after the timeout. If false, the success icon persists.
The size of the button.
Accessible label for the button. Recommended for accessibility.
Additional CSS class for the button.
Click handler. The copy action is handled automatically.