Ballmac UI home

Ecommerce KitPro

The loading, empty and error frame every Ballmac Pro shop block uses: the real heading with a skeleton shaped like a product grid, a cart, an order or a comparison table.

5/5 checksv1.0.2Updated Oct 12, 2026
What changed
  1. 1.0.2 Oct 12, 2026The order skeleton's rows no longer push the card wider than a 360 px screen.
  2. 1.0.1 Oct 12, 2026The loading skeleton no longer makes the page scroll sideways on a phone: its columns can shrink below the width of the placeholders.
  3. 1.0.0 Oct 12, 2026First release.

Update without losing your edits

Part of Ballmac UI Pro. The install command needs your licence key.

$49 oncefor all 311 Pro blocks and every Pro template. Tax included.Works as described or your money back

All products

Things we use every day, made to last.

Loading products

Installation

  1. Get a Pro licence key.

    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.

    $49 oncefor this and every other Pro item. Tax included.Money back if it does not work.

  2. 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
  3. Add it.

    $ pnpm dlx shadcn@latest add @ballmac-pro/ecommerce-kit

Usage

import { EcomSkeleton, EcomStateFrame } from "@/components/ballmac/ecommerce-kit"

The full example is in the Code tab above.

API reference

PropTypeDefault
state*

What the block is doing instead of showing its products.

"loading" | "empty" | "error"—
title

The heading and the line under it, as the ready block shows them. Leave out when the heading depends on the data.

React.ReactNode—
descriptionReact.ReactNode—
width

Widest the content may be.

keyof typeof WIDTH"6xl"
skeleton

The shape of the skeleton: pick the one closest to the ready block.

EcomSkeletonKind"grid"
label

Announced to assistive technology while loading.

string—
empty

Copy for the empty and error panels.

EmptyConfig—
errorErrorConfig—
onRetry

Called by the retry button in the error state. Without it the button is not drawn.

() => void—

Also accepts the standard attributes of its root element.

Quality scorecard

5/5

Every applicable check passes

Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.2, across 1 example.

How we measure
  • Passed: Accessibility scan

    No serious or critical issues in light and dark, on a phone and a desktop (axe-core 4.13.0, WCAG 2.1 AA and best-practice rules).

  • Passed: Small screens

    No sideways scrolling at 360, 390 or 1280 px wide.

  • Passed: Reduced motion

    Every endless animation stops when the visitor asks for less motion.

  • Passed: Right to left

    Mirrors correctly in Arabic, Hebrew, Persian and Urdu layouts (0% of elements off the mirror, limit 15%).

  • Passed: Clean console

    No console errors or React hydration errors while loading.

  • Not applicable: Keyboard

    Static content: nothing to focus.

  • Not applicable: Loading, empty and error

    Does not show data or take submissions.

  • For information: Automated tests

    No test file of its own yet.

  • For information: Footprint

    2.4 KB of source (gzip) in 1 file. No extra npm packages.

Automated checks find a subset of problems and do not replace testing with a screen reader and a keyboard in your own app. What they miss.

Use with AI

EcomStateFrame shows a heading and a skeleton, an empty panel or a retry panel for shop pages. EcomSkeleton is the skeleton on its own, in eight shapes. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Ecommerce Kit (@ballmac-pro/ecommerce-kit) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Showing a loading, empty or failed state for your own shop pages
  • Matching the states of the Ballmac Pro ecommerce blocks

Not for

  • Dashboards (use dashboard-kit)
  • A single list or card (use state-view and skeleton directly)

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

Credits

Covered by the Ballmac UI Pro license.

npm
None