UNPKG

@nextcloud/vue

Version:
13 lines (12 loc) 382 B
import { MaybeRefOrGetter } from 'vue'; /** * Copy content to clipboard with copied state * * @param content - Content to copy */ export declare function useCopy(content: MaybeRefOrGetter<string>): { isCopied: import('vue').Ref<boolean, boolean>; copy: () => Promise<void>; icon: import('vue').ComputedRef<string>; altText: import('vue').ComputedRef<string>; };