Componentnavigation0.55 KB gzipZero dependencies
Hero Split
Split hero: left text block and right framed visual slot.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add hero-splitOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { HeroSplit } from "@/components/ui/hero-split"; <HeroSplit />Source code
hero-split.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Configures eyebrow. |
| title | React.ReactNode | Primary heading or title text. |
| description | string | Descriptive helper or subtitle text. |
| actions | React.ReactNode | Configures actions. |
| visual | React.ReactNode | Right visual or highlight graphic slot |