Componentnavigation1.02 KB gzipZero dependencies
Hero
Landing hero with accent highlight word, primary/secondary actions and bottom marquee strip.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add heroOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Hero } from "@/components/ui/hero"; <Hero title="Print the night" highlight="bigbullui" primaryAction={{ label: "Get tickets", href: "/tickets" }} />Source code
hero.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxhero.tsx103 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface HeroButton { label: string; href: string;} export interface HeroProps extends React.HTMLAttributes<HTMLElement> { title: string; highlight?: string; description?: string; primaryAction?: HeroButton; secondaryAction?: HeroButton; marqueeItems?: string[];}Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Hero } from "@/components/ui/hero"; <Hero />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| highlight | string | Configures highlight. |
| description | string | Descriptive helper or subtitle text. |
| primaryAction | HeroButton | Configures primary action. |
| secondaryAction | HeroButton | Configures secondary action. |
| marqueeItems | string[] | Configures marquee items. |