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.json1 · Dependencies
npm install gsap2 · 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
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | Statement; | separates highlight phrases and {n} inserts image n. Spaces are kept as written. |
| images | InlineImage[] | — | { src, alt? } referenced by token index; pills are decorative. |
| eyebrow | string | "A LITTLE ABOUT THE STUDIO" | Label beside the star. Empty hides it. |
| caption / linkLabel / href | string | — | Caption row: a muted paragraph and an underlined arrow link. |
| background / color / muted / accent | string | "#fbf7f4" / "#252527" / "#685d54" / "#854f6c" | Milk paper, ink, mocha caption and mauve star. |
| dim | number | 0.22 | Opacity of unread phrases and pills. |
| start / end / scrub | number | 80 / 48 / 0.5 | ScrollTrigger bounds (viewport %) and smoothing. |