Skip to content

Light streak

Dark hero on a light streak shader with a capsule nav.

Usage

Usage
import { HeroLightStreak } from '@/components/blocks/hero-section-14'


<HeroLightStreak />


<HeroLightStreak
  brand="Relay"
  eyebrow="Series B, led by Quarry Ventures"
  headline={['Messages that', 'always land.']}
  description="Transactional email and SMS with delivery you can watch in real time."
  primaryAction={{ label: 'Send your first message', href: '/signup' }}
  secondaryAction={{ label: 'View the API', href: '/docs' }}
  colors={{ haze: '#2A1C6E', primary: '#7C5AF0', secondary: '#C09AFF', core: '#F7F6FF' }}
  grain={0.3}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/hero-section-14

Source

Props

Light streak props
PropTypeDefaultDescription
brand / brandHrefstring= Lumen / #Brand name and link next to the streak logo mark.
navLinks{ label: string; href: string }[]= Network, Platform, Pricing, DocsLinks inside the floating capsule. Below md the capsule unfolds into a list from its plus button.
cta{ label: string; href: string }= Get startedWhite pill at the end of the capsule. Also shown in the mobile menu.
eyebrowstring | null= 'Now live in 310 cities'Small label with a glowing dot above the headline. null hides it.
headlinestring[]= ['Deploy once.', 'Arrive everywhere.']One entry per headline line.
descriptionstring= Lumen pushes your app to the edge in seconds…Supporting copy beside the actions, under a hairline rule.
primaryAction / secondaryAction{ label: string; href: string }= Deploy your app / Explore the networkWhite pill and underlined text link beside the description.
colorsPartial<{ base: string; haze: string; primary: string; secondary: string; core: string }>= { base: '#03060D', haze: '#0A2A66', primary: '#2B7FFF', secondary: '#8EC5FF', core: '#F2F8FF' }Ribbon palette passed to the Light streak background: near-black base, deep navy haze, blue glow, light blue around the core and a near-white centre.
intensitynumber= 1Brightness of the ribbon.
grainnumber= 0.5Strength of the film grain, from 0 to 1.
speednumber= 1How fast the ribbon sways. 0 freezes it.
fluteWidthnumber= 56Width of each fluted glass slice in CSS pixels on wide screens.
classNamestring= —Additional classes for the section.
styleCSSProperties= —Override the --pp-* theme and type variables inline.