import Component from '../../components/copy-button/copy-button.component.js'; import { type EventName } from '@lit/react'; import type { AWCCopyEvent } from '../../events/events.js'; import type { AWCErrorEvent } from '../../events/events.js'; export type { AWCCopyEvent } from '../../events/events.js'; export type { AWCErrorEvent } from '../../events/events.js'; /** * @summary Copies text data to the clipboard when the user clicks the trigger. * @documentation https://webcomponents.adeliom.io/?path=/docs/components-copy--documentation * @status stable * @since 1.0 * * @dependency awc-icon * @dependency awc-tooltip * * @event awc-copy - Emitted when the data has been copied. * @event awc-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 `