Clipboard copy behavior for input fields, tokens, API keys.
Place on a button or any clickable element. Copies value input or reads from
a source element. Shows a copied signal for feedback (auto-resets after resetDelay).
<input #tokenInput readonly [value]="token()" /><button [cngxCopyValue] [source]="tokenInput" #cp="cngxCopyValue"> {{ cp.copied() ? 'Copied!' : 'Copy' }}</button><!-- With explicit value --><button [cngxCopyValue]="apiKey()">Copy API Key</button>