- Home
- Design system
- Elements
- Codeblock
Codeblock
Options
Basic usage
html
CopyStyles
Auto style
html
CopyWCAG text contrast
The results below use the normal-text threshold of 4.5:1 for AA.
Core styles
const active = true;Default
const active = true;--light
const active = true;--auto
Examples
html
Copyhtml
CopyManifest
The component manifest describes this component's API: its modifiers, structure, data attributes, CSS custom properties, accessibility notes, and example markup. It is consumed by tooling such as AI assistants and code generators.
Latest version: https://assets.soracom.io/sds/3.45.0/ds-codeblock/manifest.json?v=3.45.0
manifest.json
Copy