Case Study Card

Case study card with the company name, a short headline and a large result metric, plus an optional up or down delta. Good for proof sections on landing pages.

src/registry/ui/case-study-card.tsx/r/case-study-card.json

Installation#

bash
npx shadcn@latest add @minidev/case-study-card

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/case-study-card.json

Usage#

tsx
import { CaseStudyCard } from "@/components/ui/case-study-card"

export function Example() {
  return (
    <CaseStudyCard company="Acme" title="Cut design QA time in half" result="52%" delta={52} />
  )
}

API reference#

CaseStudyCard props
PropTypeDefault
company*string-
title*string-
result*string-
deltanumber-
classNamestring-

* required

Dependencies#

npm

React only

Built from

Examples#

All Landing page sections for React and Tailwind