Copy Input
Display a value with a copy button and clear feedback.
Preview
Import
import { CopyInput } from "@sigil-ui/components";Usage
<CopyInput aria-label="Install command" defaultValue="npx @sigil-ui/cli add button" readOnly />The copy button uses the current field value, including edits to an uncontrolled input. onCopyValue runs only after a successful copy. A disabled input also disables the copy button; clipboard failures show a retry message.
CLI
npx @sigil-ui/cli add copy-inputToken Integration
CopyInput 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.