CopyButton overview
Imports
Import the wrapper when you want default copy states and label/icon handling out of the box.
Wrapper imports
ts
import { TngCopyButtonComponent } from '@tailng-ui/components';
import { TngIcon } from '@tailng-ui/icons';
Minimal wrapper usage
html
<tng-copy-button
[text]="installCommand"
appearance="outline"
(tngCopied)="onCopied($event)"
(tngCopyError)="onCopyError($event)"
>
<tng-icon copyIcon icon="copy"></tng-icon>
<tng-icon copiedIcon icon="check"></tng-icon>
</tng-copy-button>
Style variants
The wrapper keeps its own minimum styles, while you tune the surrounding shell or projected icons.
Wrapper button (Plain CSS)
Wrapper button (Tailwind CSS)
No copy action yet.