import WebAwesomeElement from '../../internal/webawesome-element.js'; import '../icon/icon.js'; import '../tooltip/tooltip.js'; import type WaTooltip from '../tooltip/tooltip.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 `