Copy Button

Demo

Props

PropertyDescriptionType/Values
contentThe text content that is to be copied when the button is clicked.string
onlyDark?Determines if the button should only be displayed in dark mode.boolean
classNames?Customize CSS class names. Refer below for the breakdown of properties within this object.Object (detailed below)

Styles

Property classNames contains customized class names.

PropertyDescriptionType
root?Class for the main copy button component.string
button?Class for the button element.string
icon?Class for the copy icon.string