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.
What changed
- 1.0.2 Oct 12, 2026The order skeleton's rows no longer push the card wider than a 360 px screen.
- 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.
- 1.0.0 Oct 12, 2026First release.
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
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.
Installation
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.
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/ecommerce-kit
Usage
import { EcomSkeleton, EcomStateFrame } from "@/components/ballmac/ecommerce-kit"The full example is in the Code tab above.
API reference
| Prop | Type | Default |
|---|---|---|
state*What the block is doing instead of showing its products. | "loading" | "empty" | "error" | — |
titleThe heading and the line under it, as the ready block shows them. Leave out when the heading depends on the data. | React.ReactNode | — |
description | React.ReactNode | — |
widthWidest the content may be. | keyof typeof WIDTH | "6xl" |
skeletonThe shape of the skeleton: pick the one closest to the ready block. | EcomSkeletonKind | "grid" |
labelAnnounced to assistive technology while loading. | string | — |
emptyCopy for the empty and error panels. | EmptyConfig | — |
error | ErrorConfig | — |
onRetryCalled 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
Every applicable check passes
Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.2, across 1 example.
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
Pairs well with
State View
Shows the right thing for what the data is doing: a skeleton while loading, a helpful empty state, an error with retry, or your content. Announced to screen readers, never steals focus, fades with the theme's motion.
Skeleton
A theme-aware loading placeholder with an animation that stops when reduced motion is requested.
Use Resource
A small fetch state machine that gives every block the state to show: loading, ready, empty or error, with retry, abort and stale-answer protection. Includes an adapter for TanStack Query and SWR.
Bar List
A ranked list of bars with the name and number on top of the bar, so both stay readable at any width. Rows can be links or buttons, a long list folds to its top few, and every value is real text.