Ballmac UI home

Matter 1: legal matters

A law firm's matters: deadlines that cannot be missed first with overdue and due-soon in words, then each matter with client, lead and status, hours against the month's budget, search, a practice area filter and a show-closed switch.

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

Usage

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

import { Matter1 } from "@/components/ballmac/blocks/matter-1/matter-1"

export default function Matter1Demo() {
  return <Matter1 />
}

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 for the dates panel and rows under the real heading, announced as loading.

    state="loading"
  • No matters yet

    Says no matters yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry). A search or filter with no match says so.

    state="error"

Dependencies

Use with AI

A matters list. <Matter1 matters={[{ id, client, title, area, lead, status: 'open' | 'waiting' | 'closed', deadline?: { label, date, days /* from today; negative is overdue */ }, hours, budget? }]} soonDays={7} />. The panel on top lists open deadlines soonest first and says 'overdue' or 'in 3 days'; a matter over budget says 'Over budget by 3 h'. Closed matters are hidden until the switch is on. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Matter 1: legal matters (@ballmac/matter-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A practice-management home for a law firm or any deadline-driven professional service
  • A list where hours are tracked against a budget

Not for

  • A general task list; use tasks-1
  • Time entry; use timesheet-1

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