Dark editor card with three traffic-light dots, a filename tab, and line-numbered code.
export function greet(name: string) {return `Hello, ${name}!`;}console.log(greet("Beste"));
New here? Read the installation guide.
import { Code2 } from "@/components/beste/piece/code2";
<Code2
title="greet.ts"
lines={[
"export function greet(name: string) {",
" return `Hello, ${name}!`;",
"}",
"",
"console.log(greet(\"Beste\"));"
]}
/>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.
function greet(name) { return 'Hi ' + name; return `Hello, ${name}!`;}Compact diff card with added, removed, and context lines tinted in emerald and rose.
const greeting = "Hello, Beste!";tsOne-line code snippet with a monospace pill and a tiny language tag on the right.
const user = await fetchUser("42");Single-line snippet with keywords, strings, and function names colored by semantic token kind.