# Recommendation Card

> Agent suggestion with a confidence meter and actions.

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

## Install

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

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

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

## Import

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

```tsx
import {
  RecommendationCard,
  RecommendationCardActions,
  RecommendationCardConfidence,
  RecommendationCardDescription,
  RecommendationCardTitle
} from "@/components/ui/recommendation-card"
```

## Usage

```tsx
import { Button } from "@/components/ui/button"
import {
  RecommendationCard,
  RecommendationCardActions,
  RecommendationCardConfidence,
  RecommendationCardDescription,
  RecommendationCardTitle,
} from "@/components/ui/recommendation-card"

export function Example() {
  return (
    <RecommendationCard>
      <RecommendationCardTitle>Switch the hero to a single KPI row</RecommendationCardTitle>
      <RecommendationCardDescription>
        Grouping metrics reduces scan time.
      </RecommendationCardDescription>
      <RecommendationCardConfidence value={86} />
      <RecommendationCardActions>
        <Button size="sm">Apply</Button>
      </RecommendationCardActions>
    </RecommendationCard>
  )
}
```

## API

### RecommendationCardConfidence

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | number | — |  |
| `label` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/recommendation-card): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/recommendation-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.
