Grid icons open — Features block

Pro

features-grid-icons-open · for home, landing, product pages

Grid icons open

3 or 6 benefits with no card, an icon above each title: the quiet default

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-grid-icons-open

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import FeaturesGridIconsOpen from '@/components/trame/blocks/features/features-grid-icons-open.vue'

const props = {
eyebrow: "Our commitments",
title: "What you can expect from us",
intro: "Simple promises we keep, order after order.",
items: [
{
icon: "truck",
title: "Free shipping over $60",
text: "Ships within 48 hours from our workshop, tracked by email."
},
{
icon: "returns",
title: "30-day returns",
text: "Not quite right? Send it back for free from a pickup point."
}
],
cta: {
label: "Read all our commitments",
action: "page",
record: {
id: "engagements"
}
}
}
</script>

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

Props

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

PropTypeDescription
eyebrowstringWordswhat this section is about ("Why us")
title*stringWordsthe section’s title, in a few words
introstringWordsone or two sentences under the title
items*Item[]the items shown, in order
ctaCtathe call to action under the grid
footnotestringWordsa small honest line (how a figure was measured, when it was checked)
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 7 props
PropTypeDescription
iconstringDesigna icon name: truck, shield, returns, leaf, heart, star, sparkles, clock, card, gift, package, people, bolt, pin, message, phone, recycle, award, sun, store, hand, ruler, droplet, flame; none shows a number
title*stringWordsthe benefit, in a few words
textstringWordsone sentence that says it plainly
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
actionLabelstringWordsthe words of the item’s link, shown under it ("See the lead times"); without them the title alone is the link
proofstringWordsa figure or a fact the merchant owns ("60 days to change your mind"), never an invented one
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("See all our commitments")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
columnsnumberhow many columns on wide screens, 2 to 4
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
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: items[], cta

A features section, for home, landing, product pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

More features blocks

  • Chapters spy index: a large product told stage by stage on a light page: a sticky numbered index of the stages lights up the one in view beside its words and a grid of feature cards (a pill row on a phone), for visitors who scan and jump.
  • Coverage map list: continents as columns under a dotted band, each country on a dotted leader to its currency: a calm, scannable map without a map.
  • Coverage regions: a card per continent with its countries and what is available there overall: a quick answer to "do you work in my country?".
  • Coverage table: one table, a row per country with languages, currencies, payment and shipping side by side: a visitor who needs to compare precisely.
  • Measured composition stacked: Composition of a total beside its supplied comparison; the merchant’s own only.
  • Meter list bars: Labelled measurements with a shared scale per row; the merchant’s own only.
  • Meter list ring cards: Radial scores with their exact denominator and reference; the merchant’s own only.
  • Meter list segmented split: A segmented total paired with an explanatory ledger; the merchant’s own only.

All 45 features blocks