Components
Case Studies Section
Customer stories highlighted with a headline metric.
Installation
$ npx veil-ui@latest add case-studies-sectionUsage
import { CaseStudiesSection } from "@/components/ui/case-studies-section";
<CaseStudiesSection
studies={[
{
company: "Acme",
title: "Rebuilding the admin",
summary: "One coherent shell replaced three interfaces.",
metric: "3×",
metricLabel: "faster delivery",
},
]}
/>;Examples
Basic
Customer stories
How teams measure the impact of a shared system.
Acme
Rebuilding the admin in six weeks
A two-person team replaced three legacy interfaces with one coherent shell.
3×
faster delivery
Globex
One design language across 14 apps
Tokens and primitives aligned product families without a rewrite.
-42%
UI defects
Compact
Initech
Accessibility audit passed
Every flow cleared WCAG AA on the first pass.
100%
AA coverage
API reference
The package exports case-studies-section along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.
Accessibility
- Pages keep a single
h1in the hero and useh2/h3for section hierarchy. - Call-to-action elements are real links or buttons with discernible labels.
- Decorative icons are
aria-hiddenand meaningful images requirealttext.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add case-studies-section --framework vue or switch the framework in components.json.
<template>
<div data-slot="case-studies-section" class="grid gap-6 w-full max-w-4xl"><div class="mx-auto max-w-2xl text-center"><h2 class="text-2xl font-semibold tracking-tight">Customer stories</h2><p class="mt-2 text-sm text-muted-foreground">How teams measure the impact of a shared system.</p></div><div class="grid gap-4 sm:grid-cols-2"><article class="flex flex-col gap-3 rounded-xl border bg-background p-5"><p class="text-xs font-medium uppercase tracking-wide text-muted-foreground">Acme</p><h3 class="text-base font-semibold">Rebuilding the admin in six weeks</h3><p class="text-sm text-muted-foreground">A two-person team replaced three legacy interfaces with one coherent shell.</p><div class="mt-auto flex items-end justify-between gap-3 pt-2"><div><p class="text-2xl font-semibold tracking-tight">3×</p><p class="text-xs text-muted-foreground">faster delivery</p></div><a href="#acme" class="inline-flex items-center gap-1 text-xs font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">Read story <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right size-3" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></a></div></article><article class="flex flex-col gap-3 rounded-xl border bg-background p-5"><p class="text-xs font-medium uppercase tracking-wide text-muted-foreground">Globex</p><h3 class="text-base font-semibold">One design language across 14 apps</h3><p class="text-sm text-muted-foreground">Tokens and primitives aligned product families without a rewrite.</p><div class="mt-auto flex items-end justify-between gap-3 pt-2"><div><p class="text-2xl font-semibold tracking-tight">-42%</p><p class="text-xs text-muted-foreground">UI defects</p></div><a href="#globex" class="inline-flex items-center gap-1 text-xs font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">Read story <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right size-3" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></a></div></article></div></div>
</template>