# Approval Card

> Human-in-the-loop decision surface for reviews and questions.

Registry name: `approval-card`. HTML docs: https://ui.anuragroy.dev/component/approval-card.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/approval-card.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/approval-card.json`.

Registry JSON: https://ui.anuragroy.dev/r/approval-card.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/approval-card.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import {
  ApprovalCard,
  ApprovalCardActions,
  ApprovalCardContent,
  ApprovalCardDescription,
  ApprovalCardHeader,
  ApprovalCardTitle
} from "@/components/ui/approval-card"
```

## Usage

```tsx
import { Button } from "@/components/ui/button"
import {
  ApprovalCard,
  ApprovalCardActions,
  ApprovalCardContent,
  ApprovalCardDescription,
  ApprovalCardHeader,
  ApprovalCardTitle,
} from "@/components/ui/approval-card"

export function Example() {
  return (
    <ApprovalCard>
      <ApprovalCardHeader>
        <ApprovalCardTitle>How many flavors should we launch?</ApprovalCardTitle>
        <ApprovalCardDescription>
          The agent needs a decision before it writes the plan.
        </ApprovalCardDescription>
      </ApprovalCardHeader>
      <ApprovalCardContent />
      <ApprovalCardActions>
        <Button size="sm">Continue</Button>
      </ApprovalCardActions>
    </ApprovalCard>
  )
}
```

## API

### ApprovalCard

Card layout for a pending human decision.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/approval-card): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/approval-card.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
