IUseClipboardOptions

interface
Composable Options

Options accepted by useClipboard. Controls the duration the `copied` flag stays true after a successful write.

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.

feedbackDuration
number
2000
Duration (ms) the returned `copied` ref stays true after a successful write before auto-resetting.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Using useClipboard with custom feedback duration

typescript