Skip to content
Onycx-ui
ESC

Case Study Showcase

Close a page with a case-study carousel: a centred slide between faded neighbours, gradient pagination and a call-to-action pill.

Dependencies
No extra packages
Size
526 lines
Controls
9 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/case-study-showcase.json

1 · Dependencies

None beyond React and Tailwind.

2 · Copy the source

components/onycx/case-study-showcase.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the case-study-showcase.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
itemsCaseStudy[]—{ company, title, description, href?, stats: { value, label }[], art?, image?, imageAlt? }. Three stats are shown; art is drop | orb | ring | ripple | capsule.
eyebrow / eyebrowIndexstring"Case studies" / "005"Pill above the heading. An empty index hides the number.
headingstring"What We've Built"Display heading (h2) and the carousel's accessible label.
readMoreLabelstring"Read more"Link inside each slide (needs item.href). Empty hides it.
ctaLabel / ctaHrefstring"Explore all case studies" / "#"Black call-to-action pill. Empty label hides it.
startnumber1Slide shown first.
autoplay / intervalboolean / numberfalse / 5200Pauses on hover, focus, hidden tabs and reduced motion.
surface / card / inkstring"#ffffff" / "#f1f1f1" / "#111111"Panel, slide and text colours.
glowstring"#7c8cff"Soft glow under the CTA pill.
widthnumber1180Maximum width in px.