CodeBlock
Code display with optional filename header and copy button.
Example
app.tsx
import '@toucan-ui/tokens/css';
import { Button } from '@toucan-ui/core';Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
code | string | — | Required | Code content |
language | string | — | No | Language label |
filename | string | — | No | Filename shown in header |