import NebulaElement from '../../internal/nebula-element.js'; import NuIcon from '../icon/icon.component.js'; import NuTooltip from '../tooltip/tooltip.component.js'; import type { CSSResultGroup } from 'lit'; /** * @summary Copies text data to the clipboard when the user clicks the trigger. * @documentation https://nebulaui.org/components/copy * @status experimental * @since 2.7 * * @dependency sl-icon * @dependency sl-tooltip * * @event nu-copy - Emitted when the data has been copied. * @event nu-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 `