Content v1.0.0

Clipboard

Copy-to-clipboard component with multiple variants for different use cases. Supports button, inline input, and code block styles with animated success feedback.

Preview & Code

Options

Name Type Default Description
text * String required The content to copy to clipboard
variant Symbol :button Display variant: :button, :inline, or :code
label String "Copy" Button label text
success_message String "Copied!" Message shown after successful copy
success_duration Number 2000 Duration in milliseconds to show success feedback

Changelog v1.0.0

- Initial release with button, inline, and code variants
- Clipboard API with fallback for older browsers
- Configurable success message and duration

Get Full Access

Unlock the source code for this component and all others. One-time payment for lifetime access.

Get Access Now