IClipboardScopedSlotBindings
interface
Action & Command
Bindings exposed via the #default scoped slot of <OrigamClipboard>. Consumers use these to wire any custom trigger (button, icon, span, widget) to the copy pipeline without re-implementing the timing/feedback logic.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- copyrequired() => Promise<boolean>
- Triggers the copy pipeline. Promise resolves true on success, false on failure.
- copiedrequiredboolean
- True for feedbackDuration ms after a successful copy. Automatically resets to false.
- errorrequiredError | null
- Set to the thrown Error when the last copy attempt failed; null otherwise.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Custom trigger using scoped slot bindings