import WebAwesomeElement from '../../internal/webawesome-element.js'; import '../icon/icon.js'; import '../tooltip/tooltip.js'; import type WaTooltip from '../tooltip/tooltip.js'; /** * @summary Copies text data to the clipboard when the user clicks the trigger. * @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 copy-icon - The icon to show in the default copy state. Works best with ``. * @slot success-icon - The icon to show when the content is copied. Works best with ``. * @slot error-icon - The icon to show when a copy error occurs. Works best with ``. * * @csspart button - The internal `