Carousel side heading — Features block

Pro

features-carousel-side-heading · for home, landing, product, app pages

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

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-carousel-side-heading

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import FeaturesCarouselSideHeading from '@/components/trame/blocks/features/features-carousel-side-heading.vue'

const props = {
title: "Everything you need to run a store",
intro: "Scroll through: each card is a tool you’ll use from your very first week.",
features: [
{
title: "All your orders in one place",
text: "Pack, ship, refund: every order shows its stage and its next step.",
icon: "package",
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",
bullets: [
"Saved filters per team",
"Shipping labels in one click"
],
link: {
label: "See the orders",
action: "page",
record: {
id: "commandes"
}
}
},
{
title: "A catalog that updates itself",
text: "Prices, stock and photos are edited in one place and flow to all your storefronts.",
icon: "layers",
media: "https://images.unsplash.com/photo-1496181133206-80ce9b88a853?w=1600&q=80",
alt: "An open laptop with its screen off, on a light wood surface",
bullets: [
"Import from a spreadsheet",
"Variants and sizes grouped together"
],
tag: "New"
}
],
cta: {
label: "Try it free",
action: "page",
record: {
id: "essai"
}
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s title, an h2 ("What you will find with us")
introstringWordsone or two sentences under the title
features*Feature[]the features, each a title and a text
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Feature features[] · 8 props
PropTypeDescription
title*stringWordsthe feature, in a few words
text*stringWordsone or two sentences about what it does for the customer
iconstringDesignan icon name ("chart", "shield", "zap"…); a number when absent or unknown
mediastringPicturethe merchant’s own picture or screenshot of this feature
altstringWordswhat the picture shows, when the words do not say it
tagstringWordsa short mention the merchant chose ("New", "Made to measure"): never invented
bulletsstring[]Wordsone detail of the feature
linkLinkthe link: its words and the page action it runs
Link features[].link · 3 props
PropTypeDescription
label*stringWordswhat happens ("See the details")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 1 props
PropTypeDescription
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
  • Expressive motion, within its budget; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: features[].link, cta

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

More features blocks

  • 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.
  • 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.
  • Capability rows zigzag: 2 to 4 capabilities, each its own row with a picture on alternating sides, points and a link: the long, calm explanation.
  • Chapters bands: the same stages as a calm editorial sequence, each opening on a ruled header row and one full-bleed picture with its features in an even row below: when every stage has a strong wide picture, and on dark or brand bands.
  • 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.

All 45 features blocks