Home

Awesome

codesandbox-button.js:

class: CodesandboxButton, codesandbox-button

Superclass

NameModulePackage
LitElementlit

Fields

NamePrivacyTypeDefaultDescriptionInherited From
fontSizenumber14font size
hideNavigationbooleanfalsewhen true, hides navigation in the iframe
sandboxIdstringfive-character id of your sandbox
showDemobooleanfalsewhen true, shows the CodeSandbox instead of the button
modulestringpath to the default module to display
theme'light'|'dark''dark'
view'editor'|'preview'

Attributes

NameFieldInherited From
font-sizefontSize
hide-navigationhideNavigation
sandbox-idsandboxId
show-demoshowDemo
modulemodule
themetheme
viewview
<details><summary>Private API</summary>

Methods

NamePrivacyDescriptionParametersReturnInherited From
getIframeSrcprivate
onClickprivate
</details> <hr/>

Exports

KindNameDeclarationModulePackage
jsCodesandboxButtonCodesandboxButtoncodesandbox-button.js
custom-element-definitioncodesandbox-buttonCodesandboxButtoncodesandbox-button.js