Skip to content
Website Sections

HeroCanvas

A hero over a sea of dots rolling toward you in perspective. The pointer lifts a swell that travels with it.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
titlestring—The big line.
eyebrowstring—Small line above the title.
subtitlestring—Line under the title.
childrenReactNode—Buttons or links under the text.
colorstring"#8b7fd6"Dot colour.
accentstring"#22d3ee"Colour of the dots lifted by the pointer.
speednumber12 is twice as fast.
headingAsElementType"h1"Use h2 if the page already has an h1.
classNamestring"min-h-[36rem] bg-[#06060e] text-white"Set the height, background and text colour here.