Componentnavigation0.55 KB gzipZero dependencies

Hero Split

Split hero: left text block and right framed visual slot.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add hero-split

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { HeroSplit } from "@/components/ui/hero-split"; <HeroSplit />

Source code

hero-split.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxhero-split.tsx36 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface HeroSplitProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {  eyebrow?: string;  title: React.ReactNode;  description?: string;  actions?: React.ReactNode;  /** Right visual or highlight graphic slot */  visual: React.ReactNode;} /** Hero split banner: left text copy + right visual container. */export function HeroSplit({ eyebrow, title, description, actions, visual, className, ...props }: HeroSplitProps) {  return (    <section className={cn("grid grid-cols-1 items-center gap-8 overflow-hidden rounded-xl border border-border bg-card p-8 lg:grid-cols-2 lg:p-12", className)} {...props}>

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { HeroSplit } from "@/components/ui/hero-split"; <HeroSplit />
PropTypeDescription
eyebrowstringConfigures eyebrow.
titleReact.ReactNodePrimary heading or title text.
descriptionstringDescriptive helper or subtitle text.
actionsReact.ReactNodeConfigures actions.
visualReact.ReactNodeRight visual or highlight graphic slot