Code Showcase

json

{
  "test": 44
}

Component Documentation

Component Name

Code

Builder Function Name

create_code_manager

Description

renders preformatted code content with a copy button

Use like example

Config

PropertyTypeDefaultDescription
contentany

the code content to display, can be string or object

languagestring

optional label indicating the code language

Methods

MethodDescriptionParametersReturns
init

initializes the copy button manager

config: object

void

Returned Properties

PropertyTypeDescription
idstring

unique id for this code block instance

copy_button_managerobject

button manager configured to copy the code content to clipboard

languagestring

the language label for this code block

contentany

the displayed code content

icon
Sponsored byContibase