Keyboard Shortcut

Action label paired with a row of monospace key caps joined by plus separators.

Open command palette
K

New here? Read the installation guide.

Import & use
import { Code8 } from "@/components/beste/piece/code8";

<Code8
  keys={[
    "⌘",
    "K"
  ]}
  label="Open command palette"
/>

More Code pieces

View all Code
const greeting = "Hello, Beste!";ts

Code Line

One-line code snippet with a monospace pill and a tiny language tag on the right.

# Database
DATABASE_URL=postgres://localhost/beste
REDIS_URL=redis://localhost:6379
# API
API_KEY=sk_test_EXAMPLE_0000
PORT=3000

Env File

Dotenv listing with sky keys, italic muted comments, and grouped sections separated by blank lines.

const user = await fetchUser("42");

Tokenized Line

Single-line snippet with keywords, strings, and function names colored by semantic token kind.

bun add @beste/ui

Shell Command

Single-line install or run command, prefixed with a dollar sign in monospace.

SELECT id, name, email
FROM users
WHERE active = true
ORDER BY created_at DESC
LIMIT 10;

SQL Query

Multi-line SQL with violet keywords, emerald string literals, and amber numerics.

members.ts
import { Sirius } from '@sirius/sdk'
const client = new Sirius(apiKey)
await client.members.create({ name })

SDK Snippet Card

A code card with a filename header and copy affordance over syntax-toned, line-numbered source.

Markdown version