Ballmac UI home

Inspection 1: checklist inspection

A field inspection checklist: pass, fail or not applicable on each item with what to look for, a required note when something fails, progress through each section, and a submit that says exactly what is missing.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/inspection-1

Usage

Example: inspection-1-demo.tsx
"use client"

import { Inspection1 } from "@/components/ballmac/blocks/inspection-1/inspection-1"

export default function Inspection1Demo() {
  return <Inspection1 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton checklist under the real heading, announced as loading.

    state="loading"
  • No inspection assigned

    Says no inspection is assigned; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was submitted, with Try again (onRetry). A submit that fails keeps every answer and says why.

    state="error"

Dependencies

Use with AI

Inspection checklist. <Inspection1 inspection={{ title, site, inspector, sections: [{ id, title, items: [{ id, text, hint? }] }] }} defaultResult={{ itemId: { answer: 'pass'|'fail'|'na', note? } }} onSubmit={(result) => Promise} />. A failed item needs a note. Submitting with gaps lists exactly which items are open and moves focus to the first. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Inspection 1: checklist inspection (@ballmac/inspection-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Safety, hygiene or quality inspections on a phone or tablet
  • Any pass or fail checklist with evidence

Not for

  • A survey with free-form questions; use form items
  • Onboarding steps; use checklist

Registry JSON: https://ui.ballmac.com/r/inspection-1.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.