

Every state


default


plain


copied


focus
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| filename | string | – | Shown in the tab |
| language | string | – | Label on the right; empty hides it |
| code | string | – | The code as plain text, also what copy copies |
| highlight | number[] | – | 1-based lines to highlight |
| showLineNumbers | boolean | – | Line numbers in a gutter |
| children | ReactNode | – | Pre-highlighted markup that replaces the tokenized lines |
| copyLabel | string | – | Copy button name |
| copiedLabel | string | – | Shown after copying |
Used in
A block built with code-02; installing one installs it too
More code
All 6code-02 is in UI ProGet UI Pro, €199



