Bento asymmetric — Features block

Free

features-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-asymmetric

Usage

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.

PropTypeDescription
eyebrowstringWordswhat this section is about ("The workshop")
title*stringWordsthe section’s title, in a few words
introstringWordsone or two sentences under the title
tiles*Tile[]the capability tiles
footnotestringWordsa small honest line (how a figure was measured, when it was checked)
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Tile tiles[] · 9 props
PropTypeDescription
title*stringWordsthe capability, in a few words
textstringWordsone or two sentences that say it plainly
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
videostringPicturea 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
altstringWordsthe picture’s description, when it shows something the words do not
iconstringDesignan 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
statstringWordsa figure the merchant owns ("48 h", "12,000"), shown large; never an invented one
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
maxnumberthe most tiles shown, 7 by default
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
  • 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.

All 45 features blocks