Skip to content
Onycx-ui
ESC

Seam Hero

Frame a hero photo with a curved edge around a round button, then introduce two featured projects below.

Dependencies
gsap
Size
306 lines
Controls
11 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/seam-hero.json

1 · Dependencies

npm install gsap

2 · Copy the source

components/onycx/seam-hero.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the seam-hero.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
image / imageAltstring"/media/architectural-scenes/hero-sculptural.webp"Wide photograph (eager, anchored to its bottom edge) and its description.
captionLeft / captionRightstring—White captions above the seam; the right one hides at ≤767px.
discoverHref / discoverLabelstring—Round ↗ button in the seam (64px at ≤767px) and its accessible name.
eyebrow / line1 / line2 / summarystring—Headline block; line 2 is set in cocoa.
ctaLabel / ctaHrefstring—Espresso pill beside the summary; lifts 2px and turns cocoa on hover.
disciplinesstring"Residential, Commercial, Furniture & styling"Comma-separated list with em-dash markers.
studiesSeamHeroStudy[]—{ eyebrow, title, image, imageAlt?, href } study cards, two columns at every width.
paper / ink / muted / espresso / khaki / cocoastring"#faf8f4" / "#28221e" / "#6e6158" / "#4a342a" / "#d7c9b8" / "#7d5a44"Linen palette; paper fills the page, the seam and the round button.
revealbooleantruePhoto opens from inset(0 0 8% 0 round 32px) over 1.05s power3.out; the headline rises 24px over .85s.
parallaxbooleantrueStudy photos drift yPercent −2.5 → 2.5 at scale 1.06 (scrub .8).