LogoLogo
GitHub repository
GitHub repository
    Documentation
  • Overview
  • Getting Started
  • Guides


  • Hooks

  • Components


    • AsyncButton
    • AsyncIconButton
    • CodeBlock
    • CopyButton
    • Enumeration
    • ExampleCard
    • Icon
    • InlineCode
    • Logo
    • PageLoadingIndicator
    • PageOverview
    • Paragraph
    • QuoteBlock
    • SmartImage
    • SmartLink
    • StyleLink

CopyButton

A button to copy a string to the clipboard.

Props

The same as AsyncIconButton, as well as:
  • content: The string to copy to the clipboard when clicked.

Examples

Copy static string


1<CopyButton
2 variant="outlined"
3 content="Hello, world!"
4/>
1<CopyButton
2 variant="outlined"
3 content="Hello, world!"
4/>