IClipboardProps
Props for <OrigamClipboard> — a chrome-less copy-to-clipboard wrapper. Owns the copy pipeline (navigator.clipboard.writeText + execCommand fallback) and the auto-resetting copied flag. The built-in trigger is a single button; consumers can pass a #default scoped slot for full control.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- valuerequisstring
- Text payload written to the clipboard on copy(). Re-read on each trigger so mutated values are always current.
- feedbackDurationnumber2000
- Duration (ms) the copied flag stays true after a successful write. Auto-resets — no manual clearing needed.
- feedbackTextstring'Copied!'
- Label rendered inside the built-in feedback overlay and the auto-rendered button label when no slot is provided.
- successTextstring
- Alias for feedbackText. Takes precedence when both are passed.
- iconTIcon
- copiedIconTIcon
- disabledbooleanfalse
- Disables the copy action. The default trigger becomes non-interactive and copy() becomes a no-op.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Basic copy button with custom feedback text