Getting started
UI
W.Feature
Widget
The CopyToClipboard component provides a button that copies specified text to the clipboard. It includes a visual feedback mechanism that shows a check icon for 3 seconds after successful copying.
---
import { CopyToClipboard } from '@yatoday/astro-ui/astro';
---
<CopyToClipboard text="Hello World!" />
Prop | Type | Default | Description |
---|---|---|---|
variant | default | primary | accent | destructive | outline | ghost | link | default | - |
size | default | sm | lg | icon | default | - |
class | string | - | - |