import Component from '../../components/copy-button/copy-button.js'; import { type EventName } from '@lit/react'; import type { WaCopyEvent, WaErrorEvent } from '../../events/events.js'; export type { WaCopyEvent, WaErrorEvent } from '../../events/events.js'; /** * @summary Copy buttons copy text to the clipboard when the user activates them. They provide built-in success and * error feedback so users know the copy worked. * @documentation https://webawesome.com/docs/components/copy * @status experimental * @since 2.7 * * @dependency wa-icon * @dependency wa-tooltip * * @event wa-copy - Emitted when the data has been copied. * @event wa-error - Emitted when the data could not be copied. * * @slot - The trigger element. By default, a copy icon button is rendered so this is optional. If desired, you can slot * in a custom element such as `` or `