Ballmac UI home

Floorplan 1: restaurant floor

A restaurant floor plan: tables where they stand, worded as free, seated, reserved or needs clearing, a waiting list, seat a party at a table that fits, clear or clean a table, all undone with the reason if it fails.

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/floorplan-1

Usage

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

import { Floorplan1 } from "@/components/ballmac/blocks/floorplan-1/floorplan-1"

export default function Floorplan1Demo() {
  return <Floorplan1 />
}

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 plan under the real heading, announced as loading.

    state="loading"
  • No tables set up

    Says no tables are set up; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry). A seat or clear that fails goes back and says why.

    state="error"

Dependencies

Use with AI

Restaurant floor. <Floorplan1 tables={[{ id, name, seats, x, y, shape?: 'round'|'square'|'wide', status: 'free'|'seated'|'reserved'|'dirty', party?, reservation? }]} waiting={[{ id, name, size, waited }]} onSeat={(tableId, party) => Promise} onStatus={(tableId, status) => Promise} />. x and y are percentages. Only free or reserved tables that fit the party can be chosen. Changes show at once and are undone if the handler rejects. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Floorplan 1: restaurant floor (@ballmac/floorplan-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A host stand or front-of-house screen
  • Any room plan where things have a place and a state (tables, desks, beds)

Not for

  • Booking by customers; use salon-1
  • Seat selection for an event with hundreds of seats

Registry JSON: https://ui.ballmac.com/r/floorplan-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.