Skip to content
Website Sections

HeroSplit

Text on one side, media on the other. The media wipes open, then leans gently toward the pointer. Stacks when narrow.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
titlestring—The big line.
mediaReactNode—The picture or video side. Fills a 4:3 panel.
eyebrowstring—Small line above the title.
subtitlestring—Line under the title.
childrenReactNode—Buttons or links under the text.
badgeReactNode—Small card that floats over the corner of the media.
reversebooleanfalsePut the media on the left.
headingAsElementType"h1"Use h2 if the page already has an h1.
classNamestring"bg-[#0b0a14] text-white"Set the background and text colour here.