Ballmac UI home

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

  1. 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.local
    BALLMAC_LICENSE_KEY=your-licence-key
  2. Add it.

    $ pnpm dlx shadcn@latest add @ballmac-pro/hero-pro-13
  3. Need a licence or help with setup?

    The source is part of Ballmac UI Pro.

    Log in with your licence key to read and copy it here, or install it through the shadcn CLI or the MCP server. You own the code once it is in your project.

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.