npx shadcn@latest add https://ui.beste.co/r/hero181.jsonMIT licensed, no account needed
The one line that installs a component from an open registry, with the files it writes ticking off underneath it one after another.
Turn the props on the right; the snippet under them is what you would write to get what you see.
npx shadcn@latest add https://ui.beste.co/r/hero181.jsonMIT licensed, no account needed
import { Code16 } from "@/components/beste/component/code16";
<Code16
command="npx shadcn@latest add https://ui.beste.co/r/hero181.json"
files={["components/hero181.tsx","components/ui/button.tsx"]}
note="MIT licensed, no account needed"
/>The import and the props worth knowing about, in one place.
import { Code16 } from "@/components/beste/piece/code16";
<Code16
surface="card"
bordered={true}
inverted={false}
command="npx shadcn@latest add https://ui.beste.co/r/hero181.json"
files={[
"components/hero181.tsx",
"components/ui/button.tsx"
]}
note="MIT licensed, no account needed"
stepMs={520}
/>bun add @beste/uiSingle-line install or run command, prefixed with a dollar sign in monospace.
import { coupon } from "./coupon" export function total(cart: Cart) { const sum = cart.lines.reduce(add, 0) return sum const sum = cart.lines.reduce(add, 0) const discount = coupon(cart, sum) return sum - discount}Code diff whose removed and added lines slide into place one after another on mount, with the header tallying added and removed counts as they land.
const greeting = "Hello, Beste!";tsOne-line code snippet with a monospace pill and a tiny language tag on the right.
HTTP request rendered as a curl invocation with method, URL, headers, and body across continued lines.