sigilUI

Copy Button

Copy supplied text and announce the result.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { CopyButton } from "@sigil-ui/components";

Usage

<CopyButton value="npx @sigil-ui/cli add button">Copy command</CopyButton>

CLI

npx @sigil-ui/cli add copy-button

Token Integration

CopyButton follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.