Componentnavigation1.02 KB gzipZero dependencies

Hero

Landing hero with accent highlight word, primary/secondary actions and bottom marquee strip.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add hero

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
titlestringPrimary heading or title text.
highlightstringConfigures highlight.
descriptionstringDescriptive helper or subtitle text.
primaryActionHeroButtonConfigures primary action.
secondaryActionHeroButtonConfigures secondary action.
marqueeItemsstring[]Configures marquee items.