Object tiles burst — Features block
Profeatures-object-tiles-burst · for home, landing pages
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
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-object-tiles-burstUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FeaturesObjectTilesBurst from '@/components/trame/blocks/features/features-object-tiles-burst.vue'
const props = {
eyebrow: "What you get",
title: "Everything a membership covers",
intro: "One monthly price, no joining fee. Here is what it buys you from the first week.",
action: {
label: "Book a free session",
action: "contact"
},
items: [
{
title: "Coaching",
text: "Two small-group sessions a week with a coach who writes your program and corrects your form, rep by rep.",
media: {
src: "https://trame-ui.com/demo/object-tiles/kettlebell.png",
alt: "An orange competition kettlebell, its paint worn at the corners",
cutout: true
},
link: {
label: "Meet the coaches",
action: "page",
record: {
id: "coaches"
}
}
},
{
title: "Conditioning",
text: "Short, hard rounds of rope, rower and sled that build the engine for everything else, scaled to where you are today.",
media: {
src: "https://trame-ui.com/demo/object-tiles/skipping-rope.png",
alt: "A thin orange skipping rope with long foam handles, loosely coiled",
cutout: true
}
}
]
}
</script>
<template>
<FeaturesObjectTilesBurst v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short line above the title ("What you get") |
| title* | string | Wordsthe section’s title, an h2 |
| intro | string | Wordsone or two sentences under the title |
| items* | Item[] | two to six benefits, each told through one object |
| action | Action | the section’s one call to action, beside the heading |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 4 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe benefit, in a word or two ("Coaching"): an h3 |
| text* | string | Wordsone to three sentences on what it gives the visitor |
| media | Media | an object that stands for the benefit; none shows the item’s number in its tile |
| link | Link | where to learn more about it: the whole item becomes a link |
Media items[].media · 3 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt* | string | Wordswhat the object is ("An orange kettlebell, worn at the corners") |
| cutout | boolean | true when the picture is the object alone on a transparent ground: it then breaks out of its tile; absent, the picture fills the tile |
Link items[].link · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Action action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| tone | 'inverse' | 'brand' | 'muted' | the colour of the tiles: inverse (the opposite of the page, the default), brand, or muted |
| 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 |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
items[].link,action
A features section, for home, landing pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
More features blocks
- 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.
- Object specs rail: one object with measurable specs: a rail of real values beside its picture, marked parts explained one at a time.
- Rows alternating: rows that alternate words and a live mini-interface from side to side: 2 to 4 features of equal weight read down the page; figures, quotes and messages are the merchant’s own only.
- 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.
- 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.