A developer section that lists common endpoints as hairline rows pairing tone-coded method chips with monospace paths, beside a dark code panel holding a full sample request and its response.
Developer section that lists the common endpoints as hairline rows pairing tone-coded method chips with monospace paths and a line of explanation, beside a dark code panel holding a full sample request and the response it returns.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/devtools94?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/devtools94?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/devtools94.tsx plus the badge23 and button21 components it uses for the eyebrow and the docs action.
The installed file exports devtools94Demo alongside the block: the exact props behind the preview above. Spread it to get a working API section in one line.
import { Devtools94, devtools94Demo } from "@/components/beste/block/devtools94";
export default function ApiPage() {
return <Devtools94 {...devtools94Demo} />;
}Then replace the demo with your own props. The code sample is one string, so a template literal keeps the request readable:
import { Devtools94 } from "@/components/beste/block/devtools94";
const sample = `curl https://api.example.com/v1/appointments \\
-H "Authorization: Bearer $API_KEY" \\
-d starts_at=2026-05-14T14:30:00Z`;
export default function ApiPage() {
return (
<Devtools94
badge={{ label: "Developers" }}
heading="Everything the interface does, the API does too"
description="One REST API over the same records your team works in."
endpointsLabel="Common endpoints"
endpoints={[
{
method: "GET",
path: "/v1/members",
description: "List members with cursor pagination and field filters.",
},
{
method: "POST",
path: "/v1/appointments",
description: "Book a slot, with conflict checks across clinician and room.",
},
]}
code={{ label: "Book an appointment", content: sample }}
footnote={{
label: "Sandbox keys are free, and the test workspace resets nightly.",
button: { label: "Read the API docs", href: "/docs/api" },
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Monospace eyebrow above the hairline rule, rendered via Badge23 |
heading | string | – | Section heading in the left column |
description | string | – | Supporting paragraph, right-aligned from md up |
endpointsLabel | string | – | Heading above the endpoint list |
endpoints | Endpoint[] | [] | Hairline rows of method, path, and purpose |
code | { label: string; content: string } | – | Dark panel holding one sample call |
footnote | { label: string; button: ActionLink } | – | Closing line and outline button |
className | string | – | Extra classes for the outer <section> |
type ActionLink = { label: string; href: string };
type Endpoint = { method: string; path: string; description: string };GET gets the neutral hairline, anything else gets the accent border and text, so writing verbs stand out without an enum to maintain.code.content is rendered verbatim inside <pre><code> with no syntax highlighting and no formatter, which keeps the panel dependency-free. Whatever whitespace you pass is exactly what shows.overflow-x-auto), so a long curl line never widens the page or forces the section to scroll sideways.text-background tokens instead of the adaptive ones and stays dark in light mode.lg:grid-cols-2 split, not a sticky pairing, so the list and the sample scroll together as one section.devtools1
Interactive REST API endpoint reference with method badges, expandable parameter details, and response types. Grouped by resource.
devtools38
API analytics dashboard with endpoint usage table. Stats cards for requests, latency, error rate, and active users. Trend indicators and method badges.
devtools33
Real-time HTTP request interceptor with recording controls. Method badges, status codes, duration timing, size info, and filterable by method/type.
devtools7
API documentation cards showing response examples with color-coded status badges. Headers section, JSON body with copy button, success/error variants.