Ballmac UI home

SLO 1: service level objectives

Service level objectives as cards: the goal, how it is going, error budget left in percent and minutes as a labelled meter, burn rate in words, a chart with the target drawn on it, risky ones listed first, and a filter by service.

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

Usage

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

import { Slo1 } from "@/components/ballmac/blocks/slo-1/slo-1"

export default function Slo1Demo() {
  return <Slo1 />
}

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

    state="loading"
  • No objectives yet

    Says no objectives yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry).

    state="error"

Dependencies

Use with AI

Service level objectives. <Slo1 slos={[{ id, name, service, target: 99.9, current: 99.94, windowDays: 30, burn: 0.6, series: [99.9, 100, ...] }]} />. Error budget left = 1 minus the shortfall divided by the allowed shortfall; it is shown in percent and minutes. Order is target missed, burning fast (burn 2 or more, or under 25% left), watch, healthy. Exports budgetLeft. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI SLO 1: service level objectives (@ballmac/slo-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A reliability overview for a team that promises uptime or speed
  • Deciding whether it is safe to ship or time to slow down

Not for

  • A public status page; use status-1
  • Live charts of a metric; use charts-1

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