Split notched — Hero block

Free

hero-split-notched · for home, landing, app pages

Split notched

The words above one wide landscape picture whose corners are cut out as notches holding the actions and the caption: an architect, a venue, a hotel whose one strong picture should feel cut into the page — the merchant’s own only.

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-notched

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import HeroSplitNotched from '@/components/trame/blocks/hero/hero-split-notched.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>
<HeroSplitNotched v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordsthe promise, in a sentence
subtitlestringWordswhat it is and for whom, in one or two sentences
checkliststring[]Wordsone thing the visitor gets, a few words
primaryAction*PrimaryActionthe main button: its words and the page action it runs
secondaryActionSecondaryActiona quieter second action beside the main one: its words and the page action
ratingRatingthe rating, as the merchant states it
panelPanelthe panel beside the words: pictures, a quote or a price
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
PrimaryAction primaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
SecondaryAction secondaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Rating rating · 3 props
PropTypeDescription
value*stringWordsthe rating as the merchant states it ("4.8 / 5")
label*stringWordswhat it rests on ("from 1,200 customer reviews")
avatarsAvatar[]a few real customers’ pictures beside the rating
Avatar rating.avatars[] · 3 props
PropTypeDescription
name*stringWordsthe avatar’s name
alt*stringWordswho the picture shows
srcstringPicturea picture: a root-relative path (/media/…) or an absolute URL
Panel panel · 6 props
PropTypeDescription
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
imagesImage[]collage: three to five of the business’s own pictures; fewer than three, the first stands as the picture
altstringWordsthe picture’s description
captionstringWordsa line on a card laid over the picture, or under the window
quoteQuotea testimonial shown in the panel, word for word
pricePricea price shown in the panel: the plan and its amount
Image panel.images[] · 2 props
PropTypeDescription
src*stringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows, when the words do not say it
Quote panel.quote · 4 props
PropTypeDescription
text*stringWordsthe testimonial, word for word
name*stringWordsthe quote’s name
rolestringWordstheir role
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
Price panel.price · 5 props
PropTypeDescription
label*stringWordsthe plan’s name ("Pro plan")
amount*stringWordsthe price as the merchant writes it ("€29")
unitstringWordsper what ("per month, no commitment")
pointsstring[]Wordsone thing the plan includes
actionActionthe price’s call to action: its words and the page action
Action panel.price.action · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 5 props
PropTypeDescription
eyebrowstringWordsa short chip above the title
notestringWordsfine print under the actions
flipbooleantrue: swaps the sides
background'aurora' | 'pattern' | 'none'the section’s background: aurora, pattern, none
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: 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 framed: an inset panel with rounded corners and the page’s margins around it: a quieter shop, or a header that never overlays.
  • Slider fullbleed: edge to edge from the top of the page (an overlay header sits on it), the words on each picture’s calm side: a shop whose pictures are its argument.
  • 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.

All 102 hero blocks