Code Snippet

Code snippet is used to display code or commands for user to copy and paste.

#

#

#

#

#

#

NameDefaultDescription
code

string

Code snippet.

label

string

Label to show above the code snippet.

hasCopyButtontrueboolean

Whether to show a copy button.

On this page

  • Example
  • Usage
  • With label
  • Without label
  • Without copy button
  • Props