Skip to content

    Browse components

    Lamp Hero

    Hero section lit by a glowing light tube whose cone swings open and the heading rises into the light when it scrolls into view.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/lamp-hero

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/lamp-hero.json

    Usage

    import { LampHero } from "@/components/ui/lamp-hero";
    
    <LampHero color="#5eead4" title="Light the way to launch">
      <a href="/signup">Get started</a>
    </LampHero>

    Props

    PropTypeDefaultDescription
    colorstring"#5eead4"Light color.
    spreadnumber32Half-angle of the open light cone, in degrees.
    titlestring"Light the way to launch"Heading text.
    subtitlestring"Everything your team needs to ship polished interfaces, beautifully lit and ready to go."Supporting line under the heading.
    oncebooleantrueAnimate only the first time it enters the viewport.
    childrenReactNode—Call-to-action buttons rendered under the subtitle.
    classNamestring—Extra classes for the root element.