Put the code text inside, and set lang to color it.
install-note.tsx
CodeTokens
| Prop | Type | Default | Description |
|---|---|---|---|
| nodes | readonly HighlightRenderNode[] | — | The nodes of renderTokens from |
Code
<code>| Prop | Type | Default | Description |
|---|---|---|---|
| lang | string | — | Highlight the text in this language (a name or alias that highlighter knows). Works when the children are text (strings and numbers). Without it the code is plain ink. |
| palette | "color""ink""theme" | — | |
| size | "default""xs" | — | |
| ...props | <code> attributes | — | Every other attribute goes to the <code>, with a ref. |
Built with
Installs with Code
- Components
- Mark



