A tabbed customer-testimonial block with embossed stars, brand-logo tabs, an animated underline indicator that adopts each brand's accent color, a featured case-study paragraph with CTA, and a pull-quote with author.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- lucide-react
Code
import {
CaseStudyTabs,
type CaseStudy,
} from "@/registry/ruixenui/case-study-tabs";
const LOGO_CLS =
"h-5 w-auto [filter:brightness(0)] dark:[filter:brightness(0)_invert(1)] opacity-70 transition-opacity hover:opacity-100";
const cases: CaseStudy[] = [
{
brand: {
id: "coinflect",
name: "Coinflect",
logo: (
// eslint-disable-next-line @next/next/no-img-element
<img src="/logos/coinflect.svg" alt="Coinflect" className={LOGO_CLS} />
),
},
quote:
"Our customer-facing dashboards needed to ship in two weeks for a launch. The components dropped in without a single override and the audit team had nothing to flag.",
author: {
name: "Priya Raman",
role: "Engineering Lead, Coinflect",
avatarUrl: "/avatar-images/avatar-01.jpg",
},
},
{
brand: {
id: "ternary",
name: "Ternary",
logo: (
// eslint-disable-next-line @next/next/no-img-element
<img src="/logos/ternary.svg" alt="Ternary" className={LOGO_CLS} />
),
},
quote:
"We had a half-dozen tables and forms held together with one-off styling. Replacing them with a consistent system cut our design QA queue by a third.",
author: {
name: "Daniel Park",
role: "Product Manager, Ternary",
avatarUrl: "/avatar-images/avatar-02.jpg",
},
},
{
brand: {
id: "percy",
name: "Percy",
logo: (
// eslint-disable-next-line @next/next/no-img-element
<img src="/logos/percy.svg" alt="Percy" className={LOGO_CLS} />
),
},
quote:
"Visual regressions used to surface every release. Switching to tokenized components meant our diffs only flag actual change — not theme drift.",
author: {
name: "Elena Voss",
role: "Head of Design Engineering, Percy",
avatarUrl: "/avatar-images/avatar-03.jpg",
},
},
];
export default function CaseStudyTabsDemo() {
return <CaseStudyTabs cases={cases} />;
}
































