Study cards feature rows — Case studies block

Pro

case-studies-study-cards-feature-rows · for home, landing, portfolio pages

Study cards feature rows

Two to four deep stories as wide alternating rows, the cover beside the headline and all the results as a strip of figures: a few customers told at length

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/case-studies-study-cards-feature-rows

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import CaseStudiesStudyCardsFeatureRows from '@/components/trame/blocks/case-studies/case-studies-study-cards-feature-rows.vue'

const props = {
heading: "They did it with us",
lead: "Stories told with our customers’ consent, and their numbers.",
stories: [
{
customer: "Maison des Champs",
headline: "A neighborhood grocer that doubled its bulk aisle in a year",
results: [
{
value: "×2",
label: "more bulk products on offer"
},
{
value: "−35%",
label: "less waste in the aisle"
}
],
href: "case",
record: {
id: "maison-des-champs"
},
tags: [
"Grocery",
"Bulk"
],
image: "https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600&q=80",
alt: "The fresh fruit and vegetable aisle of a store"
},
{
customer: "Quay Bookshop",
headline: "A reading nook that keeps visitors twenty minutes longer",
results: [
{
value: "+20 min",
label: "more time spent in store"
},
{
value: "12",
label: "events hosted in 2025"
}
],
href: "case",
tags: [
"Bookshop"
],
image: "https://images.unsplash.com/photo-1700308234428-c619d7408fbd?w=1600&q=80"
}
]
}
</script>

<template>
<CaseStudiesStudyCardsFeatureRows v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
headingstringWordsthe section’s title ("They did it with us")
leadstringWordsone sentence of context
stories*Story[]the customer stories, each with its results
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Story stories[] · 8 props
PropTypeDescription
customer*stringWordsthe customer’s name, with their agreement
headline*stringWordsthe story in one sentence
results*Result[]the story’s measured results
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordsthe picture’s description, when it shows something the words do not
hrefstringActionthe full story
recordRecord<string, unknown>Datathe record the action opens (an article), if any
tagsstring[]Wordsup to four short tags, e.g. the sector
Result stories[].results[] · 2 props
PropTypeDescription
value*stringWordsthe customer’s own figure, as they gave it ("−32%", "12 → 30 stockists")
label*stringWordswhat it measures, with its period ("fewer returns over six months")
Options options · 2 props
PropTypeDescription
perPagenumberhow many stories show before "See more" (6 by default)
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
asseta picture’s address as your app serves it
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: stories[].href

A case studies section, for home, landing, portfolio pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More case studies blocks

  • Featured plus list: one featured story and a rail of the other stories, each with its main figure.
  • Featured: one story told large: the words at the left, its three figures in a column, the customer’s quote under.
  • Goals table: target against outcome with a status for each, a miss shown as plainly as a success.
  • Metrics story chart: a few figures as rows beside a chart of the merchant’s own series over time; the merchant’s own only.
  • Proof by segment logos and quote: a switch of customer kinds on top, then the chosen kind’s logos in a quiet ruled row and its first quote told large, the others small beside it: a product sold to a few distinct kinds of customer, one voice per kind carrying the proof; the merchant’s own logos and quotes only.
  • Proof by segment quote cards: the heading and a vertical list of customer kinds at the start, the chosen kind’s quotes as one to three cards with their faces beside it, its logos small under them: kinds of customer with several voices each and real portraits; the merchant’s own logos and quotes only.
  • Quotes and results: two to four customers whose words and figures both matter, on a landing page: their quotes in a row of cards, then one picture card per story with its first figure (the merchant’s own quotes and results only).
  • Study page facts strip: a customer story told in one calm column under a wide cover and a strip of facts: the usual story, with a quote or two.

All 20 case studies blocks