Use the following composition to build a Code block:
The highlighter and languages can be configured from shiki.ts.
The root code block component for syntax highlighting.
A button to copy the code block content.
A component to handle overflow of the code block.
| Prop | Type | Default |
|---|---|---|
collapsed? $bindable | boolean | true |
children? | Snippet | - |