Bento asymmetric — Features block
Freefeatures-bento-asymmetric · for home, landing pages
Bento asymmetric
One large flagship tile and smaller ones around it: a product story with a clear lead
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-bento-asymmetricUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FeaturesBentoAsymmetric from '@/components/trame/blocks/features/features-bento-asymmetric.vue'
const props = {
eyebrow: "The workshop",
title: "Everything that makes the difference",
intro: "A few reasons to trust us, explained one by one.",
tiles: [
{
title: "Pieces cut in our workshop",
text: "Every style is designed, cut and sewn under one roof, by the same small team.",
image: "https://images.unsplash.com/photo-1586216583179-20b23ef9dd5f?w=1600&q=80",
alt: "Hands cutting black fabric with scissors on a wooden table"
},
{
icon: "leaf",
title: "Natural materials",
text: "Linen, organic cotton and wool, chosen to last."
}
]
}
</script>
<template>
<FeaturesBentoAsymmetric v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this section is about ("The workshop") |
| title* | string | Wordsthe section’s title, in a few words |
| intro | string | Wordsone or two sentences under the title |
| tiles* | Tile[] | the capability tiles |
| footnote | string | Wordsa small honest line (how a figure was measured, when it was checked) |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Tile tiles[] · 9 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe capability, in a few words |
| text | string | Wordsone or two sentences that say it plainly |
| image | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| video | string | Picturea short muted clip over the picture (.mp4, a few seconds; the picture is its first frame): fetched only when the tile plays, once, when it comes into view; again on hover or focus; never with reduced motion |
| alt | string | Wordsthe picture’s description, when it shows something the words do not |
| icon | string | Designan icon name: truck, shield, returns, leaf, heart, star, sparkles, clock, card, gift, package, people, bolt, pin, message, phone, recycle, award, sun, store, hand, ruler, droplet, flame |
| stat | string | Wordsa figure the merchant owns ("48 h", "12,000"), shown large; never an invented one |
| 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 |
|---|---|---|
| max | number | the most tiles shown, 7 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 |
| 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
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
tiles[]
A features section, for home, landing pages; it uses @lucide/vue, 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.
- Annotated picture margin notes: the picture centred with its notes in the margins, each tied to its point by a thin leader line: a product explained in a few phrases, where numbered markers would feel technical.
- Annotated picture markers: one picture explained part by part with numbered markers and a legend: a product, a tool, a screen.
- 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.
- Capability bento grid: a four-column bento, the lead tile two by two at the top left, the words at the top of each tile and its piece of the product bleeding off the foot: a product with 4 to 7 capabilities to show at once, each one easiest to believe on screen; figures, names and messages are the merchant’s own only.
- Capability bento side by side: tiles in pairs on a row, a wide one and a small one taking turns from side to side, the wide tile’s drawing beside its words and the small tile’s above them: services or capabilities best told by a drawing each, such as an agency’s or a studio’s "What we do"; marks, names and figures are the merchant’s own only.