# Compliance Checks block

> Compliance checks stat card with segmented bar gauge and overflow actions menu

Single-metric card tracking compliance checks passing with a segmented filled-block gauge, percentage readout, and actions dropdown. Built on ReUI Frame plus shadcn Button and DropdownMenu. For security, audit, and status dashboard widgets.

- Type: Pro block
- Category: [Stats](https://web.dev.reui.io/blocks/application/stats.md)
- Page: https://web.dev.reui.io/blocks/application/stats/stats-13
- MCP: `get_block("stats-13")`
- Built with: Button, Dropdown Menu, Frame
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A gauge of 30 small squares, one per check, filled from the left up to the passing count, under a shield title and a percent readout

## Agent notes

- Set `complianceTotal` and `compliancePassing` in data.ts; the squares and the percent readout both derive from them
- The caption prints a literal 16 as the check count and labels the percent assigned, so rebind it to `complianceTotal`
- The 5 `DropdownMenuItem` entries, from View Details to View History, have no handler, so wire each action

## When not to use

- A percentage drawn over stacked columns of blocks, not a single row of squares: use [Adoption Rate](https://web.dev.reui.io/blocks/application/stats/stats-14.md) (`get_block("stats-14")`)
- A segmented gauge drawn as a ring across several metrics at once: use [API Health](https://web.dev.reui.io/blocks/chart/radial-chart/chart-8.md) (`get_block("chart-8")`)

## Install

```bash
npx shadcn@latest add @reui/stats-13
```

## About Stats blocks

### When to use

- A row of 3 or 4 KPI tiles to sit above the content of a page you already have
- One metric card that pairs a headline figure with a meter, a split bar or supporting rows
- A card already written for one topic: leads, tasks, quota, compliance, renewals, adoption, balance or capacity

### When not to use

- Tiles on a dotted, halftone or line grid backdrop, or records such as profiles or jobs: use the [Card blocks](https://web.dev.reui.io/blocks/application/card.md)
- A metric whose value carries a small trend drawn beside or under it: use the [Sparkline blocks](https://web.dev.reui.io/blocks/chart/sparkline.md)
- A whole overview page with a header, summary tiles and a work list or trend under them: use the [Dashboard blocks](https://web.dev.reui.io/blocks/application/dashboard.md)

### Agent notes

- Each page.tsx only centers `Stats` in a padded wrapper; mount `Stats` from components/stats.tsx inside your own layout
- `Stats` takes no props, fetches nothing and wires no handler, so add props for your own figures and callbacks

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
