Annotated picture markers — Features block
Profeatures-annotated-picture-markers · for home, landing, product pages
Annotated picture markers
One picture explained part by part with numbered markers and a legend: a product, a tool, a screen
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-annotated-picture-markersUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FeaturesAnnotatedPictureMarkers from '@/components/trame/blocks/features/features-annotated-picture-markers.vue'
const props = {
title: "A wet ridge, point by point",
intro: "What keeps a day in the hills dry, from the hood down to the boots.",
rows: [
{
title: "The Cairnline storm kit",
text: "Shell, pack and beanie built for a full day in the rain, tested on wet ridges every fall.",
media: "https://images.unsplash.com/photo-1602684154647-eb1e2a9fd92e?w=1600&q=80",
alt: "A hiker seen from behind in an orange beanie, black rain shell and backpack, above a mountain lake in the mist"
}
],
callouts: [
{
x: "54",
y: "41",
label: "Merino beanie",
text: "Warm when soaked, dries on the walk back."
},
{
x: "45",
y: "58",
label: "24 L pack",
text: "Taped seams and a roll-top lining keep the spare layers dry."
}
]
}
</script>
<template>
<FeaturesAnnotatedPictureMarkers 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 |
| callouts* | Callout[] | the notes pinned on the picture |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Row rows[] · 6 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 |
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 |
Callout callouts[] · 4 props
| Prop | Type | Description |
|---|---|---|
| x* | string | Designhorizontal position on the picture, in percent ("32") |
| y* | string | Designvertical position on the picture, in percent ("58") |
| label* | string | Wordsthe marked part, in a few words |
| text | string | Wordsone sentence about it |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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 |
| 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 clsx, motion, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More features blocks
- Accordion media right: 3 to 6 features that open one at a time as cards, the picture of the open one on the other side: the product’s main capabilities, each with a screen.
- Accordion numbered progress: 3 to 6 features in a numbered list joined by a line that fills as you go, a tall picture beside it: an order to read in, steps of one workflow.
- Benefit list icon left: 4 to 8 dense benefits in two columns of text, icon on the left.
- Benefit list numbered: 3 to 5 big arguments, one per full-width row with a large faint number and its proof line.
- Bento asymmetric: one large flagship tile and smaller ones around it: a product story with a clear lead.
- Bento feature and column: one tall flagship tile beside a column of supporting ones: a single feature to push.
- Bento poster collage: an edge-to-edge collage, picture titles set huge across them, figures on flat brand blocks: a brand with strong photography and a point of view more than a list of features.
- Bento stat tiles: text, picture and large-figure tiles mixed: when the merchant has real figures.