Copy Button
A copy-to-clipboard control. It shows a value and a button that writes that value to the clipboard and announces a confirmation in a polite live region. The conformance suite instruments navigator.clipboard.writeText to assert the shown value is what gets copied — without depending on system-clipboard permissions.
Preview
ui-lab-9f3a2Installation
npx shadcn@latest add https://ui.publictheta.com/r/copy-button.jsonConformance
This component conforms to the @publictheta/ui-spec copy-button specification. Run the suite against any implementation with pnpm conformance.