Skip to content
Knowns UI
Get ProSign in

Inline Object Headline

A display headline with small objects set between its words, photos, glyph tiles or faces, that pop in once it is in view. Objects can be toggles the visitor presses, and an end word can swap together with its object.

On this page

Examples

End word swap

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

parts
(string | HeadlineObject)[]
Words and objects in reading order. An object is { node, label?, shape?, tilt?, onPress?, pressed? }.
object.shape
"tile" | "round" | "bare"
Default"tile"
A rounded square, a circle for faces, or no box for cut-out art.
object.onPress / pressed
() => void / boolean
Makes the object a toggle button named by its label. Once any is pressed, the unpressed ones show as empty dashed slots with a plus mark.
swap
{ items, value?, onValueChange?, interval?, className? }
An end slot whose word swaps with its object. Controlled with value, or it steps every interval ms (2400) while in view.
as
"h1" | "h2" | "h3" | "p"
Default"h1"
Heading level.
objectSize
string
Default"0.86em"
Object size relative to the type.
pop
boolean
Defaulttrue
Pop the objects in the first time the headline is in view.

States

First in view
Objects pop from 0.8 with a small turn, one after another from the first
Defaultpop spring, 40ms apart
once
Word swap
The old word and object lift away, the new pair rises in after a beat
Default180ms out, 280ms in
ease out
Press
The object toggles; the others become empty dashed slots with the thing smaller inside and a plus mark
Default180ms
ease out
Server, reduced motion
Objects in place, the first swap word
-

Accessibility

  • The heading reads as its words. Decorative objects are aria-hidden.
  • Pressable objects are toggle buttons with aria-pressed and the object's label as their name.
  • The swap slot reads all its words once, as a list; the moving copy is aria-hidden.

When to use

When to use

  • A landing headline with small photos, glyphs or faces between its words that pop in once.
  • A headline whose objects the visitor presses to pick (ingredients, tools, teammates), or whose last word swaps with its object.

When not to use

  • One word that changes on its own, with no object: use Word Rotate.
  • A heading with a marker or underline accent: use Marked Heading.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Inline Object Headline to my app and wire it to my own data.
  • I need a landing headline with small photos, glyphs or faces between its words that pop in once. Set that up with the Knowns UI Inline Object Headline.
  • Which Inline Object Headline props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "inline-object-headline" }) and search_docs({ query: "inline object headline" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Inline Object Headline, or found something off? We read every message.