Skip to content
Onycx-ui
ESC

Inline Image Statement

Place rounded photos between phrases in a headline and bring the text into contrast as you scroll.

Dependencies
gsap
Size
223 lines
Controls
10 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/inline-image-statement.json

1 · Dependencies

npm install gsap

2 · Copy the source

components/onycx/inline-image-statement.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the inline-image-statement.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
textstring—Statement; | separates highlight phrases and {n} inserts image n. Spaces are kept as written.
imagesInlineImage[]—{ src, alt? } referenced by token index; pills are decorative.
eyebrowstring"A LITTLE ABOUT THE STUDIO"Label beside the star. Empty hides it.
caption / linkLabel / hrefstring—Caption row: a muted paragraph and an underlined arrow link.
background / color / muted / accentstring"#fbf7f4" / "#252527" / "#685d54" / "#854f6c"Milk paper, ink, mocha caption and mauve star.
dimnumber0.22Opacity of unread phrases and pills.
start / end / scrubnumber80 / 48 / 0.5ScrollTrigger bounds (viewport %) and smoothing.