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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

copy
required
() => Promise<boolean>
Triggers the copy pipeline. Promise resolves true on success, false on failure.
copied
required
boolean
True for feedbackDuration ms after a successful copy. Automatically resets to false.
error
required
Error | 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

vue