Scope steps — Services block

Pro

services-scope-steps · for about, home pages

Scope steps

Numbered steps each with its bullets: a service that is delivered in order; 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/services-scope-steps

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import ServicesScopeSteps from '@/components/trame/blocks/services/services-scope-steps.vue'

const props = {
title: "How a made-to-measure bag comes together",
lead: "Beyond the bags themselves, the workshop helps you make them last.",
services: [
{
title: "We talk",
text: "An appointment to understand how you’ll use it.",
points: [
"At the workshop or by video call",
"One hour"
]
},
{
title: "We design",
text: "A pattern and a leather sample.",
points: [
"Three color choices"
]
}
],
cta: {
label: "Request a quote",
action: "contact"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordswhat the services are ("What we do for you")
leadstringWordsone sentence on who they are for
services*Service[]Datathe services of the merchant, in their order
ctaCtathe call to action: its words and the page action it runs
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Service services[] · 5 props
PropTypeDescription
idstring | numberthe service’s id
title*stringWordsthe service, in a few words ("Repair")
text*stringWordswhat it covers, in one or two sentences
pointsstring[]Wordsone thing it includes
scopeScope[]what the service covers, each a label and a value, e.g. "Duration"
Scope services[].scope[] · 2 props
PropTypeDescription
label*stringWords("Duration", "Lead time", "Price")
value*stringWordsthe merchant’s own figure, as written ("From €45")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Ask for a quote")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
altstringWordsthe picture’s description
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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: cta
  • Reads services from your app

A services section, for about, home pages; it uses @lucide/vue, 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 services blocks

  • Package cards: equal cards with the points as chips, the words, then the scope as ruled lines aligned across the row (for whom, delay, starting price) and the action: a studio or workshop selling two to four fixed packages, not a subscription; the merchant’s own only.
  • Page cover and figures: the page of one service with a strong picture and a few figures to show (a workshop, a studio, a venue): the title over a wide cover, the figures on a card across its foot, then the parts in one centred column, the tools as tiles and the other services as links at the foot; the merchant’s own figures only.
  • Page with aside: the page of one service told mostly in words (a craft, a repair, a consultation): the title, lead and parts in a wide column, with the action, the tools and the other services in quiet cards that stay in view beside them; the merchant’s own figures only.
  • Price ledger: one row per service, the words left and its delay and price in aligned columns right: services the merchant quotes, compared at a glance; the merchant’s own only.
  • Split feature: the heading and the picture left, every service as a checklist line in one card right: a short offer shown at once; the merchant’s own only.
  • Tiles bento: one flagship service as a large tile and the others smaller around it, names on the pictures: four to six services with one that matters most; the merchant’s own pictures only.
  • Tiles heading and tiles: the heading in a narrow column, two to four services as tall picture tiles beside it: a studio, a salon or a craftsman whose work speaks first; the merchant’s own pictures only.
  • Tiles index hover: the service names set large in a numbered list, one picture beside them that follows the hovered name: four to eight services for a confident studio; the merchant’s own pictures only.

All 19 services blocks