CopyButtonProps
The interface publier.primitives.CopyButtonProps.
Overview
interface CopyButtonProps
Properties
class
class?: string
daisyUI button variant. Defaults to btn-ghost btn-sm; override for
inline placement. Pass the full class string (e.g. 'btn btn-primary').
floating
floating?: boolean
Absolutely positions the button over its container (code blocks, etc.).
label
label?: string
Accessible label. Defaults to 'Copy to clipboard'.
selector
selector?: string
Element id (no # prefix) passed to <clipboard-copy for>; the element’s
textContent or [value] is copied. Upstream resolves via getElementById,
so a CSS selector will not match. Takes precedence over text when both
are set.
text
text?: string
Literal text to copy (passed to <clipboard-copy value>).