Split quote — Hero block
Freehero-split-quote · for home, landing, app pages
Split quote
One testimonial of the merchant’s own as the proof beside the promise
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/hero-split-quoteUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import HeroSplitQuote from '@/components/trame/blocks/hero/hero-split-quote.vue'
const props = {
title: "A glass house at the end of the garden, ten minutes from the harbor",
subtitle: "Four bedrooms, a kitchen that opens onto the lawn and a living room with the whole valley in its window. We show it on Saturdays, by appointment.",
checklist: [
"4 bedrooms, 2 bathrooms",
"Half an acre of garden"
],
primaryAction: {
label: "Book a viewing",
action: "viewing"
},
secondaryAction: {
label: "See the floor plan",
action: "page",
record: {
id: "floor-plan"
}
},
rating: {
value: "4.8 / 5",
label: "based on our sellers’ reviews",
avatars: [
{
name: "Customer 1",
alt: "A smiling customer"
},
{
name: "Customer 2",
alt: "A smiling customer"
}
]
},
panel: {
image: "https://images.unsplash.com/photo-1598714805247-5dd440d87124?w=1600&q=80",
images: [
{
src: "https://images.unsplash.com/photo-1598714805247-5dd440d87124?w=1600&q=80",
alt: "A house with glass walls at the end of a garden in autumn"
},
{
src: "https://images.unsplash.com/photo-1758565811176-ccd94357a844?w=1600&q=80",
alt: "A living room opening onto the landscape, with a beige corner sofa"
}
],
alt: "A house with glass walls at the end of a garden in autumn",
caption: "The garden house, Alder Lane",
quote: {
text: "We sold our old house with Harbor & Pine in five weeks, at the price they gave us on the first visit.",
name: "Ruth A.",
role: "Sold with Harbor & Pine in 2025"
},
price: {
label: "Selling with us",
amount: "2%",
unit: "of the sale price, nothing if it doesn’t sell",
points: [
"Photos and a floor plan",
"Viewings on weekends"
],
action: {
label: "Get a valuation",
action: "plan",
record: {
id: "valuation"
}
}
}
},
options: {
eyebrow: "Harbor & Pine · For sale",
note: "Asking $1,180,000 · Open house on Saturday"
}
}
</script>
<template>
<HeroSplitQuote v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe promise, in a sentence |
| subtitle | string | Wordswhat it is and for whom, in one or two sentences |
| checklist | string[] | Wordsone thing the visitor gets, a few words |
| primaryAction* | PrimaryAction | the main button: its words and the page action it runs |
| secondaryAction | SecondaryAction | a quieter second action beside the main one: its words and the page action |
| rating | Rating | the rating, as the merchant states it |
| panel | Panel | the panel beside the words: pictures, a quote or a price |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
PrimaryAction primaryAction · 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 |
SecondaryAction secondaryAction · 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 |
Rating rating · 3 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Wordsthe rating as the merchant states it ("4.8 / 5") |
| label* | string | Wordswhat it rests on ("from 1,200 customer reviews") |
| avatars | Avatar[] | a few real customers’ pictures beside the rating |
Avatar rating.avatars[] · 3 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe avatar’s name |
| alt* | string | Wordswho the picture shows |
| src | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
Panel panel · 6 props
| Prop | Type | Description |
|---|---|---|
| image | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| images | Image[] | collage: three to five of the business’s own pictures; fewer than three, the first stands as the picture |
| alt | string | Wordsthe picture’s description |
| caption | string | Wordsa line on a card laid over the picture, or under the window |
| quote | Quote | a testimonial shown in the panel, word for word |
| price | Price | a price shown in the panel: the plan and its amount |
Image panel.images[] · 2 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordswhat the picture shows, when the words do not say it |
Quote panel.quote · 4 props
| Prop | Type | Description |
|---|---|---|
| text* | string | Wordsthe testimonial, word for word |
| name* | string | Wordsthe quote’s name |
| role | string | Wordstheir role |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
Price panel.price · 5 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe plan’s name ("Pro plan") |
| amount* | string | Wordsthe price as the merchant writes it ("€29") |
| unit | string | Wordsper what ("per month, no commitment") |
| points | string[] | Wordsone thing the plan includes |
| action | Action | the price’s call to action: its words and the page action |
Action panel.price.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 · 5 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short chip above the title |
| note | string | Wordsfine print under the actions |
| flip | boolean | true: swaps the sides |
| background | 'aurora' | 'pattern' | 'none' | the section’s background: aurora, pattern, none |
| 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:
primaryAction,secondaryAction,panel.price.action
A hero section, for home, landing, app 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 hero blocks
- Slider peek: the current slide centred with the previous and next showing as slivers at the edges: 3 to 5 scenes of equal weight, where showing that there is more is the point.
- Slider thumbs: a framed slide with a tab of thumbnails notched into its foot, one per slide: a shop or a studio with 3 to 5 strong scenes whose visitor should see what else there is before choosing.
- Stage beside: the promise at the start and the product window beside it, bleeding off the page’s edge on a coloured panel over a dot grid: a denser first screen where the words lead and the product backs them; figures and messages in the window are the merchant’s own only.
- Stage centered: the promise centred over a wide product window on a fine grid, the window rising past the backdrop’s foot: a product whose views weigh the same, the first screen of a SaaS or service site; figures and messages in the window are the merchant’s own only.
- Stage deck: the promise at the start and, at the end, a slightly tilted desktop window on two fanned cards with a phone overlapping its corner (the second view in its mobile layout), no tab row: a product used on desktop and on the phone alike, two views that tell it; figures and messages in the window are the merchant’s own only.
- Stage scroll tabs: the promise beside a phone whose view changes as the page scrolls past a rail of the views’ names (a pinned screen on large screens, plain tabs elsewhere): a mobile-first product walked through in 3 to 5 views; figures and messages in the window are the merchant’s own only.
- Store aisles: a large promise and picture with the shop’s categories as a strip of links under it: a catalogue with several ranges to enter by.
- Store mosaic: the promise beside a mosaic of the shop’s picture and its first four categories as picture tiles, the featured products as a short priced list under the words: a shop with a few strong ranges, each with a good picture.