Controls

Dimension Hero

Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Dimension Hero

Every flat page hides a little depth. The pill knows where.

Press the pill, then move the pointer and scroll

Dimension Hero

A bold headline hero with a pill that turns the page into a black wireframe world of extruded letters.

Dependencies

three

Installation

npx shadcn@latest add ikislay/pixel-ui/dimension-hero

How to use

import { DimensionHero } from "@/components/ui/dimension-hero"
export function Demo() {
return <DimensionHero className="h-[640px] w-full" />
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
headline
string

The headline. Each word reveals on its own and becomes 3D letters in the pill view.

tagline
string

The line under the headline. It also floats in the 3D view.

className
string

Classes applied to the root. Give it a height; the headline scales to its width.

Credits

  • •Inspired by the shopify.design hero