# Service status

Grouped service health and incident history from your own status data.

Access: pro. Category: Blocks. Kind: composite.

## When to use

- Use it when a page needs grouped service health and incident history from your own status data.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.

## Alternatives

- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than service status.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Service status

```sh
npx shadcn@latest add @tidal-pro/service-status
```

Stylesheets: `components/ui/tidal.css`, `components/ui/service-status.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/service-status.css";
import{TidalServiceStatus}from"./components/ui/service-status";
export default()=><div className="tidal-scope"><TidalServiceStatus groups={[{id:"example",label:"Demo",services:[{id:"example",label:"Demo",status:"operational"}]}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalServiceStatus.groups: ReadonlyArray<TidalServiceGroup>`: Required groups value accepted by this exported component.
- `TidalServiceStatus.title: ReactNode`: Required title value accepted by this exported component.
- `TidalServiceStatus.action?: ReactNode`: Optional action value accepted by this exported component.
- `TidalServiceStatus.announceUpdates?: boolean | undefined` (default false): Optional announce updates value accepted by this exported component.
- `TidalServiceStatus.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalServiceStatus.emptyMessage?: ReactNode` (default "No services to display."): Optional empty message value accepted by this exported component.
- `TidalServiceStatus.headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalServiceStatus.incidents?: ReadonlyArray<TidalServiceIncident> | undefined` (default []): Optional incidents value accepted by this exported component.
- `TidalServiceStatus.labels?: Partial<Record<TidalServiceHealth, string>> | undefined` (default {}): Optional labels value accepted by this exported component.
- `TidalServiceStatus.noIncidentsMessage?: ReactNode` (default "No incidents to display."): Optional no incidents message value accepted by this exported component.
- `TidalServiceStatus.updated?: { label: string; dateTime?: string; } | undefined`: Optional updated value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/service-status.tsx) | [Manifest](https://tidalui.com/examples/service-status.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useState } from "react";

import { TidalServiceStatus, type TidalServiceGroup } from "./components/ui/service-status";

import { TidalButton } from "./components/ui/tidal-button";

import "./components/ui/service-status.css";

import "./components/ui/status-badge.css";

import "./components/ui/collapsible-panel.css";



const tidalExampleStyles = ".tidal-scope .service-status-demo {\n  width: 100%;\n  max-width: 680px;\n  min-width: 0;\n}\n.tidal-scope .service-status-demo-controls {\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-top: 16px;\n}\n.tidal-scope .service-status-demo-controls > span {\n  font-size: 11px;\n  line-height: 1.5;\n  color: var(--t-muted);\n}";

export function ServiceStatusDemo() {
  const [issue, setIssue] = useState(false);
  const groups: TidalServiceGroup[] = [
    {
      id: "platform",
      label: "Platform",
      services: [
        {
          id: "api",
          label: "API",
          status: "operational",
          description: "Requests and integrations",
        },
        {
          id: "dashboard",
          label: "Dashboard",
          status: issue ? "degraded" : "operational",
          description: "Workspace and project pages",
        },
        {
          id: "delivery",
          label: "File delivery",
          status: "operational",
          description: "Uploads and downloads",
        },
      ],
    },
  ];
  return (
    <div className="service-status-demo">
      <TidalServiceStatus
        title="Service status"
        description="Sample availability for a product workspace."
        groups={groups}
        updated={{
          label: "Sample update · 10:30 UTC",
          dateTime: "2026-10-14T10:30:00Z",
        }}
        incidents={
          issue
            ? [
                {
                  id: "slow-pages",
                  title: "Dashboard response delays",
                  status: "investigating",
                  summary: "Some workspace pages are loading slowly.",
                  details: (
                    <p>
                      The sample team is checking a slow database query. API
                      requests and file delivery are unaffected.
                    </p>
                  ),
                  time: {
                    label: "Sample incident · October 14, 2026",
                    dateTime: "2026-10-14",
                  },
                },
              ]
            : []
        }
        noIncidentsMessage="No incidents in this sample."
      />
      <div className="service-status-demo-controls">
        <TidalButton
          variant="secondary"
          aria-pressed={issue}
          onClick={() => setIssue(!issue)}
        >
          {issue ? "Reset sample" : "Show incident"}
        </TidalButton>
        <span>Sample data. No monitoring is connected.</span>
      </div>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <ServiceStatusDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

Consumer-owned service groups with stable unique IDs, labels, operational/degraded/outage/maintenance/unknown status, optional descriptions and native destinations. Overall health reflects the highest supplied severity, with empty data reported as unknown. Optional incident records provide title, investigating/identified/monitoring/resolved status, summary, details, time and destination. Detail-bearing incidents use the native Collapsible panel; content-free incidents remain static articles. Native section props/ref, bounded headingLevel h2 through h6, optional description/action, custom health labels, empty messages and supplied update time are supported. Updates are quiet unless announceUpdates is enabled. Consumers own monitoring, incident accuracy, timestamps, subscriptions and all real actions; this block never monitors or contacts a service.
