import { ClipboardOptions } from './clipboard.types'; /** * Headless clipboard controller. Wires a trigger button to copy text to the * system clipboard and reflects a temporary `data-state="copied"` on the root * so CSS can swap an icon/label; it never applies visual styles itself. * * The text comes from (in priority order): the `text` option, or the * `[data-c42-clipboard-source]` element (its `value` for inputs/textareas, * otherwise its `textContent`). * * Markup: * ```html *