Single-line snippet with keywords, strings, and function names colored by semantic token kind.
const user = await fetchUser("42");New here? Read the installation guide.
import { Code5 } from "@/components/beste/piece/code5";
<Code5
tokens={[
{
"kind": "keyword",
"text": "const"
},
{
"kind": "plain",
"text": " "
},
{
"kind": "var",
"text": "user"
},
{
"kind": "plain",
"text": " = "
},
{
"kind": "keyword",
"text": "await"
},
{
"kind": "plain",
"text": " "
},
{
"kind": "fn",
"text": "fetchUser"
},
{
"kind": "punct",
"text": "("
},
{
"kind": "string",
"text": "\"42\""
},
{
"kind": "punct",
"text": ");"
}
]}
/>const greeting = "Hello, Beste!";tsOne-line code snippet with a monospace pill and a tiny language tag on the right.
Pretty-printed JSON object with sky keys, emerald strings, and amber numerics.
Multi-line SQL with violet keywords, emerald string literals, and amber numerics.
import { Sirius } from '@sirius/sdk' const client = new Sirius(apiKey)await client.members.create({ name })A code card with a filename header and copy affordance over syntax-toned, line-numbered source.