Commitments cards — About block

Pro

about-commitments-cards · for about, home pages

Commitments cards

Cards with the rule, its text and what it costs the merchant: when honesty about the trade-off is the point; the merchant’s own only

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/about-commitments-cards

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import AboutCommitmentsCards from '@/components/trame/blocks/about/about-commitments-cards.vue'

const props = {
title: "The rules we hold ourselves to",
lead: "Six rules we have kept since our first year, even when they cost us.",
items: [
{
title: "Few designs, well finished",
text: "Fourteen designs in the catalog, not one more until the others are perfect.",
cost: "What it costs us: a shorter catalog than our competitors’.",
since: "Since 2012",
never: "Never used to: excuse a lack of choice."
},
{
title: "No never-ending sales",
text: "Our prices are the same all year. When a batch is finished, it is retired.",
cost: "What it costs us: the Black Friday order spikes.",
since: "Declined since 2019",
never: "Never used to: advertise a fake discount."
}
],
statement: "Make less, repair more, and say so plainly.",
footnote: "These commitments were last reviewed in October 2026."
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat these are ("What we hold ourselves to")
leadstringWordsone sentence on why they exist
items*Item[]commitments the merchant can keep: three to six is ideal
statementstringWordsa mission or a conviction set above the items
footnotestringWordsa line stating a limit or when this was last reviewed
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 5 props
PropTypeDescription
title*stringWordsthe rule, the value or the refusal ("No permanent sales")
text*stringWordswhat it means in practice, in a sentence or two
coststringWordswhat it costs the merchant, written out ("What it costs us: lower margins")
sincestringWordssince when it holds, written out ("Turned down since 2019")
neverstringWordswhat the word is never used for, written out ("Never used to: sell faster")
Options options · 2 props
PropTypeDescription
showNumbersbooleanfalse: hides the numbers before the commitments
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
labelyour word for an interface key, or undefined to keep the block’s own

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

A about section, for about, home pages; it uses clsx, motion, tailwind-merge.

More about blocks

  • Annual letter split: an eyebrow with the period, a title and short parts (what worked, what did not, what comes next): a yearly review the author signs; the merchant’s own only.
  • Build criteria questions: how the merchant picks what to build, as four questions: explaining the choices, not listing them.
  • Company facts list: a plain label and value list with the claim in prose beside it: the company’s facts in one place; the merchant’s own only.
  • Emphasized statement underlined: the conviction set large and centred, one key phrase underlined or highlighted: a short statement with one idea to keep; the merchant’s own only.
  • Founder letter: a signed letter in one narrow column, salutation, paragraphs, signature and date: one voice speaking to the customer; the merchant’s own only.
  • Intro long prose: a wide headline then up to three paragraphs in a readable column: when there is real story to read.
  • Intro rail lead: an editorial about page: the eyebrow as a quiet label in a left rail, the title, a large first paragraph and the others smaller at the right, the action as a text link.
  • Intro split title: a short intro where the title and the words weigh the same: a very large title at the left, the paragraphs at the right on its last line.

All 35 about blocks