Ballmac UI home

Settings Pro 2: security: two-step, sessions and tokensPRO

Turn on two-step sign-in with a code check, sign out other devices with a confirmation, and create, reveal, copy and revoke API tokens.

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/settings-pro-2
  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 { SettingsPro2 } from "@/components/ballmac/blocks/settings-pro-2/settings-pro-2"

Dependencies

Use with AI

Account security page. onEnableTwoFactor, onCreateToken and onRevokeToken connect it to your backend; demo behaviour works without them. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Settings Pro 2: security: two-step, sessions and tokens (@ballmac-pro/settings-pro-2) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Account settings for developer and business products

Not for

  • Products without accounts

Registry JSON (needs your licence key): https://ui.ballmac.com/r/pro/settings-pro-2.json

Covered by the Ballmac UI Pro license.