Capability rows checkerboard — Features block
Profeatures-capability-rows-checkerboard · for home, landing, product pages
Capability rows checkerboard
2 to 4 capabilities with strong square-ish photographs and short words: edge-to-edge cells with no gap, picture and words alternating like a chessboard, an architectural grid
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/features-capability-rows-checkerboardUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FeaturesCapabilityRowsCheckerboard from '@/components/trame/blocks/features/features-capability-rows-checkerboard.vue'
const props = {
title: "What changes when you order from us",
intro: "Three commitments we keep every day, with concrete answers to your questions.",
rows: [
{
title: "Order tracking that answers before you ask",
text: "Every parcel has its own page: where it is, who is carrying it, when it arrives. No more emailing customer service to find out.",
bullets: [
"The tracking link goes out as soon as it ships",
"Address changes until the order is packed"
],
media: "https://images.unsplash.com/photo-1585060282215-39a72f82385c?w=1600&q=80",
alt: "A hand holding a smartphone with a blank screen, on a white background",
link: {
label: "See how it works",
action: "page",
record: {
id: "suivi"
}
}
},
{
title: "Simple returns, no endless forms",
text: "Thirty days to change your mind. The label takes two clicks, and the refund follows once we receive the parcel.",
bullets: [
"Prepaid return label",
"Size exchange in one step"
],
media: "https://images.unsplash.com/photo-1631010231888-777b6285ef84?w=1600&q=80",
alt: "A large upright kraft box with a blank white label",
link: {
label: "Read the return policy",
action: "page",
record: {
id: "retours"
}
}
}
]
}
</script>
<template>
<FeaturesCapabilityRowsCheckerboard v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s title, an h2 |
| intro | string | Wordsone or two sentences under the title |
| rows* | Row[] | the rows shown, in order |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Row rows[] · 7 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe capability, in a few words ("Track every order") |
| text | string | Wordsone short paragraph saying what it does for the visitor |
| bullets | string[] | Wordsone concrete point, as the merchant would say it |
| media | string | Picturethe merchant’s own picture or screenshot of it |
| alt | string | Wordswhat the picture shows, when the words do not say it |
| link | Link | the link: its words and the page action it runs |
| stats | Stat[] | the row’s stats, in order |
Link rows[].link · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Discover tracking") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Stat rows[].stats[] · 2 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Wordsa figure the merchant measured ("48 h") |
| label* | string | Wordswhat it counts |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| mediaSide | 'left' | 'right' | 'alternate' | where the pictures sit: left, right or alternate (by default) |
| frame | 'none' | 'browser' | 'phone' | what frames each picture: none, a browser or a phone |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
rows[].link
A features section, for home, landing, product pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More features blocks
- Bento stat tiles: text, picture and large-figure tiles mixed: when the merchant has real figures.
- Bento wide pair: two wide tiles over a row of narrower ones: five or six capabilities of similar weight.
- Capability bento grid: a four-column bento, the lead tile two by two at the top left, the words at the top of each tile and its piece of the product bleeding off the foot: a product with 4 to 7 capabilities to show at once, each one easiest to believe on screen; figures, names and messages are the merchant’s own only.
- Capability bento side by side: tiles in pairs on a row, a wide one and a small one taking turns from side to side, the wide tile’s drawing beside its words and the small tile’s above them: services or capabilities best told by a drawing each, such as an agency’s or a studio’s "What we do"; marks, names and figures are the merchant’s own only.
- Capability bento spotlight: one tall lead tile on the start side and the others two by two beside it, each piece of the product above its words, bleeding off the corner: one capability that leads and a few that back it; figures, names and messages are the merchant’s own only.
- Carousel cards: 3 to 8 features as large cards with a picture above their words, buttons above the rail: the main capabilities, each with a screen.
- Carousel overlay: 3 to 8 tall pictures with their words over a calm foot, cards that lean toward the pointer: a visual, bold tour of the offer.
- Carousel side heading: 4 to 8 features after a heading column that stays beside the rail, numbered and open: a long list to browse without a heavy page.