Agentic Design System
v3.5.0

Components · Actions · Copy Button

Back to Copy Button

Copy ButtonNew

Owner: Design System Team · Version: v3.5.0

Use beside any copyable value - an API key, install command or link - for immediate in-place confirmation.

Properties

Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.

Live Preview

Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.

When to use

Next to an API key, install command, link or snippet.

API key Install command Share link Code snippet

Component Guide

Overview

Copy Button copies a value to the clipboard and confirms in place: the icon becomes a check and the label changes to Copied, then it returns to idle.

When to Use

  • Next to an API key, install command, link or snippet.
  • Icon-only copy controls in dense rows (with an accessible label).

When Not to Use

  • A copy action with alternatives - use Split Button.
  • Full code samples - use a code block with its own copy control.

Best Practices

  • Keep the label short; the cell reserves its widest state so nothing shifts.
  • Handle failure (insecure context) with the Failed state instead of throwing.

Accessibility

  • Native button named by its label, also when icon-only.
  • A polite status region announces the result.
  • Enter or Space copies the value.

Related Components

Button, Split Button, Action Swap.