Rows sticky rail — Features block
Profeatures-rows-sticky-rail · for home, landing, product pages
Rows sticky rail
A sticky menu of the features beside rows that scroll past it, the current one lit: 4 to 6 features a visitor may jump between; figures, quotes and messages are 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/features-rows-sticky-railUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FeaturesRowsStickyRail from '@/components/trame/blocks/features/features-rows-sticky-rail.vue'
const props = {
title: "Run the whole service, from booking to payment",
intro: "One tool for the jobs, the crews and the money, built for home-service teams of two to fifty.",
rows: [
{
eyebrow: "Revenue",
title: "See what came in this month, before you ask",
text: "Every paid invoice lands on one line that updates itself, so you know where the month stands between two jobs.",
link: {
label: "How reporting works",
action: "reporting"
},
aside: {
kind: "figure",
value: "2 days",
text: "from finished job to paid invoice, on average across our own customers last quarter"
},
visual: {
kind: "chart",
title: "Revenue",
label: "Collected, last 30 days",
value: 48210,
prefix: "$",
delta: "+12% vs. last month",
points: [
18,
22
],
axis: [
"Oct 1",
"Oct 8"
],
floats: [
{
kind: "notice",
title: "Invoice #1042 paid",
text: "Harbor Street kitchen · $640",
tone: "success"
},
{
kind: "figure",
label: "Paid this week",
value: 9380,
prefix: "$",
delta: "+18%"
}
]
}
},
{
eyebrow: "Scheduling",
title: "A full week of jobs, booked without a single phone call",
text: "Customers pick a slot that fits your crews. Confirmations, reminders and reschedules go out on their own.",
link: {
label: "See scheduling",
action: "scheduling"
},
aside: {
kind: "quote",
text: "We stopped losing Monday mornings to voicemail.",
by: "Maya L., cleaning studio owner"
},
visual: {
kind: "list",
title: "This week",
rows: [
{
label: "Kitchen deep clean",
meta: "Tue 9:00 · Crew A",
status: "Confirmed",
tone: "success"
},
{
label: "Move-out, 2 bedrooms",
meta: "Tue 13:30 · Crew B",
status: "Rescheduled",
tone: "warning"
}
],
floats: [
{
kind: "message",
name: "Dana, customer",
text: "Thursday at 10 works, see you then!"
}
]
}
}
]
}
</script>
<template>
<FeaturesRowsStickyRail 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[] | 1 to 6 features, each a row of words and a mini-interface |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Row rows[] · 6 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short label above the title ("Scheduling") |
| title* | string | Wordswhat the feature does for the visitor, in one line: an h3 |
| text* | string | Wordsone short paragraph on how it works |
| link | Link | the link: its words and the page action it runs |
| aside | Aside | a small secondary card under the text: the merchant’s own quote, figure or note only |
| visual* | Visual | Visual | Visual | Visual | Visual | Visual | Visual | Visual | the product’s mini-interface shown beside the text, with its floating cards |
Link rows[].link · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("See how scheduling works") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Aside rows[].aside · 4 props
| Prop | Type | Description |
|---|---|---|
| kind* | 'quote' | 'figure' | 'note' | quote: a customer’s words with who said them; figure: one measured number with its line; note: a plain remark |
| value | string | Wordsthe figure, as written ("3 h", "98%"); for a figure only |
| text* | string | Wordsthe quote, the figure’s line or the note |
| by | string | Wordswho said it ("Maya L., studio owner"); for a quote only |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| tone | 'brand' | 'primary' | 'accent' | the colour family of the panels behind the mini-interfaces; brand by default |
| 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 |
| 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, @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 features blocks
- Meter list segmented split: A segmented total paired with an explanatory ledger; the merchant’s own only.
- Object specs rail: one object with measurable specs: a rail of real values beside its picture, marked parts explained one at a time.
- Object tiles burst: two to six benefits, each an object cut out of its photo bursting from the top of its own solid square tile, words under it: a studio, a club or a maker whose offer is easiest to see as things.
- Object tiles shelf: the same objects standing on one long solid band that runs the width of the page, crossing its top edge, the words under each: a calmer, wider line for three to six items (on a phone, a list of small tiles beside their words).
- Sectors expand panels: tall panels side by side, the open one widens to show its sentence, link and picture: 3 to 6 sectors with good pictures, the section’s bold moment; the sectors the merchant really serves only.
- Sectors reveal tiles: equal tiles with an icon and a name, the active one turns dark to show its sentence and link over its picture: 4, 6 or 8 short sectors, a playful grid; the sectors the merchant really serves only.
- Sectors ruled index: a large heading then one ruled row per sector with its icon, sentence and a small picture: a sober, readable list for 4 to 8 sectors, in a B2B or about page; the sectors the merchant really serves only.
- Split accordion: 3 to 5 capabilities that share one picture area, the open one decides the picture: a single screen told in parts.