Staaarter

Minimal Event Hero

Centered, single-column event hero with no image: oversized heading typography, a date/location line, a short description, and a primary plus outline-secondary CTA pair. Perfect for design conferences and annual summits.

By Staaarter Team
Event
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/minimal-event-hero.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event2.tsx instead.

Usage

The file also exports event2Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Event2, event2Demo } from "@/components/blocks/event/event2";

export default function Page() {
  return <Event2 {...event2Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall badge above the heading, e.g. the event series name.
headingReactNodenoneOversized centered hero heading.
dateLocationstringnoneSingle combined date + location line, e.g. "March 3-4, 2026 · Lisbon, Portugal".
descriptionstringundefinedShort supporting paragraph under the date/location line.
primaryCtaEventCtaLinkundefinedPrimary button label + href.
secondaryCtaEventCtaLinkundefinedOutline secondary button label + href.
classNamestringnoneExtra classes for the outer section element.

Types

interface EventCtaLink {
  label: string;
  href: string;
}

Behavior notes

  • No image or media slot in this block by design; it's the plain-text minimal hero variant of the category.
  • primaryCta and secondaryCta render as plain links (Button with render={<Link/>}); both are decorative in the demo, there is no real ticketing or navigation wired up.