Skip to content

Browse components

← All components

Recommendation Card

Agent suggestion with a confidence meter and actions.

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

Preview

Loading preview…

Installation

Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.

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

GitHub fallback if the website is down:

Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/recommendation-card.json

Usage

Import paths follow your components.json aliases. After install, the default path is @/components/ui/recommendation-card.

Import
import {  RecommendationCard,  RecommendationCardActions,  RecommendationCardConfidence,  RecommendationCardDescription,  RecommendationCardTitle} from "@/components/ui/recommendation-card"
example.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 Reference

RecommendationCardConfidence

PropTypeDefault
valuenumber—
labelstring—