# PolicyStatus

Policy check results, with who checked, when, what they covered and which version.

- **Use it for**: Policy check results with who checked, when and what they covered.
- **Not for**: Permissions people can change. Try [ScopeGrant](https://unseenui.com/components/scope-grant/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { PolicyStatus } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<PolicyStatus variant="list" checks={policyChecks} classification="Confidential" onRefresh={refreshChecks} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `checks` (required) | `readonly PolicyCheck[]` |  |
| `classification` | `string` |  |
| `className` | `string` | Added to the root element, after the component's own classes. |
| `error` | `string` |  |
| `loading` | `boolean` |  |
| `onRefresh` | `(() => void)` |  |
| `variant` | `"list" \| "cards" \| "accordion"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[AgentHandoff](https://unseenui.com/components/agent-handoff/), [AuditTrail](https://unseenui.com/components/audit-trail/), [AgentCard](https://unseenui.com/components/agent-card/)

Page: https://unseenui.com/components/policy-status/
