# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/piece/code3. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Last updated: 2026-05-03

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Pieces](/pieces)
3. /
4. [Code](/pieces/code)
5. /
6. Shell Command

# Shell Command

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

$`bun add @beste/ui`

CLICode

Base UI

![](https://oud.pics/sm/l/npm.svg)`npx shadcn add https://ui.beste.co/piece/r-base/code3`

New here? Read the [installation guide](/docs/installation).

Import & useCopy

```
import { Code3 } from "@/components/beste/piece/code3";

<Code3
  command="bun add @beste/ui"
/>
```

## More Code pieces

[View all Code](/pieces/code)

[](/piece/code1)

`const greeting = "Hello, Beste!";`ts

### Code Line

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

[](/piece/code8)

Open command palette

⌘+K

### Keyboard Shortcut

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

[](/piece/code11)

curl\-XPOSThttps://api.beste.co/v1/users\\

\-H"Authorization: Bearer sk\_live\_..."\\

\-H"Content-Type: application/json"\\

\-d'{"name": "Ada Lovelace"}'

### cURL Command

HTTP request rendered as a curl invocation with method, URL, headers, and body across continued lines.

[](/piece/code5)

`const user = await fetchUser("42");`

### Tokenized Line

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

[](/piece/code12)

\# 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.

[](/piece/code4)

`function greet(name) {`

\-` return 'Hi ' + name;`

+``  return `Hello, ${name}!`; ``

`}`

### Diff Snippet

Compact diff card with added, removed, and context lines tinted in emerald and rose.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.