Full-Bleed Workspace Band
A feature section that breaks its media out of the container into a full-bleed image band floating a live view switcher, framed by a two-column header above and three numbered captions below. Good for product tours that want a wide, cinematic image without losing the section's usual text width.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/full-bleed-workspace-band.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature1.tsx instead.
Usage
The file also exports feature1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature1, feature1Demo } from "@/components/blocks/feature/feature1"; export default function Page() { return <Feature1 {...feature1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | none | Small label above the heading. |
| heading | ReactNode | none | Section heading, left column of the header row. |
| description | string | none | Supporting copy, right column of the header row. |
| cta | HeaderCta | none | Optional link button under the description. |
| image | MediaSlotImage | none | Background photo for the full-bleed band. |
| views | WorkspaceView[] | none | Options in the floating view switcher; the active option's description shows underneath it. |
| captions | WorkspaceCaption[] | none | Three numbered captions below the band. |
| className | string | none | Extra classes for the outer section element. |
Types
type HeaderCta = { label: string; href: string }; type WorkspaceView = { label: string; description: string }; type WorkspaceCaption = { title: string; description: string };
Behavior notes
- The view switcher is real client-side state: clicking Design/Code/Live changes which option is active and swaps the description text shown in the floating panel.
- The full-bleed band uses a relative/left-1/2/-translate-x-1/2 trick to span the viewport width regardless of the section's own max-width container.
- The header CTA renders as a real Next.js Link via the button's render prop, but has no destination behavior beyond navigating to whatever href you supply.
- The three icons in the switcher are a fixed, hardcoded set indexed by position, not a per-item icon prop, since a "use client" component can't accept a component reference from a server parent.
More Feature Blocks
View all →Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.
Expanding Proof Rows
Full-width hairline rows that expand in place to reveal a paragraph beside a live asset image.