Marks that stand in for words inside a heading: Works with, then the logos instead of the names. Each sits at the cap height of the heading as the bare mark and keeps its name for screen readers and in a tooltip. A group stays on one line as a row, an overlapping stack or a hand of cards.
On this page
- Landing headlines
- Works with lines
- Section headings
- Card titles
- Integration copy
Examples
Row, stack and hand
In a section heading
Before a card title
One slot that cycles
Monochrome icons on a plate
In running text
Installation
npx knowns-ui@latest add heading-markPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Heading Mark from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/heading-mark
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add heading-mark
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/fan-stack.tsx
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/use-floating.ts
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/heading-mark.tsx
- components/ui/knowns/heading-mark-utils.ts
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/heading-mark, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "heading-mark" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- marks
{ icon, label }[]- icon: an emoji string, your icon node, your logo image { src, fit? } or a filled tile { icon, tone }. label: the name the mark stands for.
- variant
"row"|"stack"|"hand"- Default
"stack" from 3 marks, else "row" - Small gaps, overlapping marks edged in the page colour, or a fan like cards held in a hand.
- tile
"none"|"soft"|"glass"|"outline"- Default
"none" - The plate behind each mark. None draws the bare mark: a logo or an emoji carries its own shape. A plate is for monochrome glyphs, and images on a plate are clipped to its rounded square.
- join
"or"|"and"- A real word before the last mark, which then sits on its own.
- reveal
boolean- Default
false - Pop the marks in one by one when the group scrolls into view after load. Never on a group that is on screen at load.
- tooltip
boolean- Default
true - The name on hover and keyboard focus. It makes each mark a tab stop; turn it off where the names are written out next to the marks.
- ringColor
string- Default
"var(--background)" - The edge between overlapping marks: a halo that follows a bare mark's shape, a ring around a plate. Use var(--card) on a card.
- HeadingMark
{ icon, label, tooltip?, tile? }- One mark.
- HeadingMarkCycle
{ marks, join?, interval?, tile? }- Default
join "or", 2200 - One slot that rolls through the marks. Screen readers hear the whole list once.
- Size
CSS- Default
1cap + 0.14em - From the font around it, so set the heading's font size and the marks follow. A bare glyph fills 0.92 of it; a plate's radius is 0.22.
| Prop | Type | Default | Description |
|---|---|---|---|
| marks | { icon, label }[] | - | icon: an emoji string, your icon node, your logo image { src, fit? } or a filled tile { icon, tone }. label: the name the mark stands for. |
| variant | "row" | "stack" | "hand" | "stack" from 3 marks, else "row" | Small gaps, overlapping marks edged in the page colour, or a fan like cards held in a hand. |
| tile | "none" | "soft" | "glass" | "outline" | "none" | The plate behind each mark. None draws the bare mark: a logo or an emoji carries its own shape. A plate is for monochrome glyphs, and images on a plate are clipped to its rounded square. |
| join | "or" | "and" | - | A real word before the last mark, which then sits on its own. |
| reveal | boolean | false | Pop the marks in one by one when the group scrolls into view after load. Never on a group that is on screen at load. |
| tooltip | boolean | true | The name on hover and keyboard focus. It makes each mark a tab stop; turn it off where the names are written out next to the marks. |
| ringColor | string | "var(--background)" | The edge between overlapping marks: a halo that follows a bare mark's shape, a ring around a plate. Use var(--card) on a card. |
| HeadingMark | { icon, label, tooltip?, tile? } | - | One mark. |
| HeadingMarkCycle | { marks, join?, interval?, tile? } | join "or", 2200 | One slot that rolls through the marks. Screen readers hear the whole list once. |
| Size | CSS | 1cap + 0.14em | From the font around it, so set the heading's font size and the marks follow. A bare glyph fills 0.92 of it; a plate's radius is 0.22. |
Accessibility
- Each mark holds its name as visually hidden text, so the heading reads as a sentence: "Works with Halden, Moss, Tern or Haven".
- The mark itself is hidden from screen readers, and images get an empty alt for the same reason.
- With tooltips on, each mark is a tab stop; focus shows the ring and the name, Escape hides it.
- A cycle names all its marks once and does not announce each roll.
- Under reduced motion marks stay at rest, a group does not spread and a cycle holds on its first mark.
What it handles
- 01Puts marks in place of words inside a heading's sentence, sized from the cap height of its font, so one mark fits a 20px line and a 96px headline.
- 02Draws the bare mark by default, so a logo or an emoji keeps its own shape, and puts a plate behind monochrome glyphs only when you ask.
- 03Keeps a group on one line as a row, an overlapping stack or a hand of cards, each edged by a halo that follows its shape, with a real or or and before the last mark.
- 04Reads the sentence to screen readers with each name in place, and shows the name in a tooltip on hover and keyboard focus.
- 05Lifts the hovered mark to the front on a spring; a stack nudges its neighbours aside and a hand opens its fan so every mark shows.
- 06Rolls one slot through several marks, pausing on hover, focus, off screen and under reduced motion.
States
- First render
- Marks at rest; nothing plays
- none
- Hover or focus a mark
- It lifts 0.08 of its size and comes to the front; a stack nudges, a hand fans 1.5 times wider
- glide spring
- Scrolls into view later (reveal)
- Marks pop in one after another
- 180ms ease out, 60ms apart, 240ms at most
- Cycle
- The slot rolls up to the next mark every 2.2s
- 280ms ease in-out
- Reduced motion
- Rest pose; the cycle holds
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Marks at rest; nothing plays | none |
| Hover or focus a mark | It lifts 0.08 of its size and comes to the front; a stack nudges, a hand fans 1.5 times wider | glide spring |
| Scrolls into view later (reveal) | Marks pop in one after another | 180ms ease out, 60ms apart, 240ms at most |
| Cycle | The slot rolls up to the next mark every 2.2s | 280ms ease in-out |
| Reduced motion | Rest pose; the cycle holds | 0ms |
Works with
When to use
When to use
- A landing or section headline that names the tools it works with by their marks instead of their names: Works with, then the logos.
- A small set of marks before a card title or inside running text, where the mark is quicker to recognise than the word.
When not to use
- People: faces with names and status: use Avatar.
- Customer logos as social proof: use Logo Cloud.
- Marks people have never seen: write the name instead, a mark only replaces a word people already know.
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 Heading Mark to my app and wire it to my own data.
- I need a landing or section headline that names the tools it works with by their marks instead of their names: Works with, then the logos. Set that up with the Knowns UI Heading Mark.
- Which Heading Mark props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "heading-mark" }) and search_docs({ query: "heading mark" }).