Skip to content
UI Kit
Accent color

Case studies

Customer stories with results, from a card grid to a full case study header and measured before and after.

6 variants
Switch category

Case studies

Grid with key figure

One story large, the rest as cards, each with the number that matters.

Open in Studio

Case study header

The opening of a case study page with facts, picture and the headline number.

Open in Studio

Results with quote

A dark band with four results and the quote that explains them.

Open in Studio

Before and after

Both states side by side, then the measured change row by row.

Open in Studio

By industry

A list of stories with an industry filter at the side.

Open in Studio

Details

What Case studies brings along, read from the registry and the source.

Variants
6
Version
1.0.2 · since 1.0.0
File
components/ui/case-studies.tsx
Brings along
utilskitbuttoniconsectionreveal
npm packages
None
Languages
English and German, 11 texts of its own
In collections
Portfolio

Props

The CaseStudiesProps interface from components/ui/case-studies.tsx, with the comments from the code.

  • variantoptional
    CaseStudiesVariant

    gridfeaturedheaderresultsbefore-afterby-industry

  • eyebrowoptional
    React.ReactNode
  • titleoptional
    React.ReactNode
  • descriptionoptional
    React.ReactNode
  • studiesoptional
    CaseStudy[]

    grid and by-industry

  • storyoptional
    CaseStory

    featured, header and results

  • comparisonoptional
    CaseComparison

    before-after

  • actionoptional
    { label: string; href: string }

Built-in texts

Case studies writes these texts itself. The language follows the KitProvider, the labels prop replaces single ones.

Show all 11 texts
readEnglish Read the case studyGerman Fallstudie lesen
readShortEnglish Read storyGerman Geschichte lesen
allEnglish AllGerman Alle
allStoriesEnglish All case studiesGerman Alle Fallstudien
industriesEnglish IndustriesGerman Branchen
beforeEnglish BeforeGerman Vorher
afterEnglish AfterGerman Nachher
measuredEnglish Measured changeGerman Gemessene Veränderung
storiesEnglish {n} storiesGerman {n} Geschichten
storyEnglish {n} storyGerman {n} Geschichte
compareEnglish Drag to compare before and afterGerman Ziehen, um vorher und nachher zu vergleichen

Accessibility

Read from the source of the component.

  • Sets aria-label, aria-live and aria-pressed, so screen readers announce purpose and state.
  • Uses the role group.
  • Announces changes through a live region without moving focus.
  • Adds text for screen readers where icons and graphics stand alone.
  • The server renders the starting state in full, JavaScript only adds the interaction.

Motion

  • Rises in briefly the first time it comes into view (kit-rise, useInView).
  • With reduced motion (prefers-reduced-motion) it stays still. 8 places in the code switch motion off then.

Frequent questions

How do I install Case studies?

With aiw add @ai-website/case-studies. The command puts components/ui/case-studies.tsx into your project, the code is yours from then on. It brings along button, icon, section and reveal. It needs no further npm packages.

Which variants does Case studies have?

6 variants, Grid with key figure, Featured story, Case study header, Results with quote, Before and after and By industry. You pick one with the variant prop, for example variant="featured".

Can I translate the texts of Case studies?

Yes. Case studies carries 11 texts of its own in English and German, such as “Read the case study”, “Read story” and “All”. The language follows the KitProvider, single texts change through the labels prop.

Can an AI assistant build with Case studies?

Yes. Through the MCP server of the aiw CLI, Claude, Cursor, GitHub Copilot, Windsurf, Codex and Gemini find Case studies with aiw_components and install it with aiw_add @ai-website/case-studies. Name the variant in your prompt, for example variant="grid", and the assistant writes your content straight into the props.

Can I adjust Case studies without code?

Yes, in the Studio. All 6 variants are editable there, texts, lists and switches. The Studio writes the matching CaseStudies code to copy.

Often searched

Jump to

Copied to the clipboard