Hero Pro 13: API with runnable codePRO
Tabbed code editor (Node, Python, cURL) with token colours from your chart tokens and a Run button that streams the response. Keyboard-navigable tabs, left-to-right code in right-to-left pages.
Installation
Once per project: add the Pro registry and your licence key.
components.json{ "registries": { "@ballmac": "https://ui.ballmac.com/r/{name}.json", "@ballmac-pro": { "url": "https://ui.ballmac.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${BALLMAC_LICENSE_KEY}" } } } }.env.localBALLMAC_LICENSE_KEY=your-licence-keyAdd it.
$ pnpm dlx shadcn@latest add @ballmac-pro/hero-pro-13Need a licence or help with setup?
Usage
import { HeroPro13 } from "@/components/ballmac/blocks/hero-pro-13/hero-pro-13"Dependencies
Use with AI
Developer hero with a built-in code sample viewer: samples[] is an array of tabs with tokenised lines; response is the JSON shown when Run is pressed. No syntax-highlighter dependency. With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Hero Pro 13: API with runnable code (@ballmac-pro/hero-pro-13) to this project with the shadcn MCP, then use it where it fits.
Use it for
- APIs and SDKs where a short call is the pitch
- Developer platforms
Not for
- Non-technical products
Registry JSON (needs your licence key): https://ui.ballmac.com/r/pro/hero-pro-13.json
Covered by the Ballmac UI Pro license.
More hero blocks
Hero 1: split with product visual
Split hero: badge, word-by-word headline, two calls to action and proof points on the left, a live product summary card on the right, over an animated grid.
Hero 2: developer tool with install command
Centered hero for developer tools: headline, two actions, package-manager install tabs and a terminal window with a light beam tracing its border.
Hero 3: AI product with live prompt
Hero for AI products: a real prompt input on the left, and on the right a mock answer with a reasoning panel, a tool call and a streaming reply.
Hero 4: split with interactive globe
Split hero with a live pill, headline, two actions and headline stats beside a large draggable WebGL globe marking your regions.