// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "clipboard"). import type { ElementType, ReactNode } from 'react'; import { Clipboard as ClipboardController, type ClipboardOptions } from '@42/core/clipboard'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "\n "; export interface ClipboardProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"div"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `clipboard:copy` — detail: `{ text }` */ onCopy?: (detail: unknown, event: CustomEvent) => void; /** Fired on `clipboard:error` — detail: `{ error }` */ onError?: (detail: unknown, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `
` element. */ [key: string]: unknown; } export function Clipboard(props: ClipboardProps) { const { as, className, children, onCopy, onError, text, timeout, ...rest } = props; const options = { text, timeout } as ClipboardOptions; return ( {children as ReactNode} ); }