Skip to main content
Urbicon UI

CitationChipexperimental

Compact source marker rendered for a citation. Clicking opens a popover with the source title, snippet, and a policy-checked outbound link — wired up automatically by StreamingMarkdown, or usable standalone for reference lists.

Style
Loading...
Loading syntax highlighting...

01 Examples

Standalone source footer

Use CitationChip on its own for a reference list under an answer or card — no streamed message required. Each chip opens a popover with the source title, snippet, and a policy-checked link.
Sources:
Loading...
Loading syntax highlighting...

Numeric vs. label

citationStyle picks what the chip shows. Reach for numeric — a compact footnote pill — when citations are dense and inline; reach for label — the truncated title — for a handful of named sources in a footer or sidebar.
Loading...
Loading syntax highlighting...

Wired up by StreamingMarkdown

Inside a streamed answer you rarely construct chips by hand: StreamingMarkdown resolves each [id] marker to a CitationChip from its sources prop, 1-based in array order. See the StreamingMarkdown page for the full streaming flow.

Self-attention replaced recurrence in sequence models

.

Loading...
Loading syntax highlighting...

02 Accessibility

Descriptive trigger label

A bare "[1]" tells a screen reader nothing, so the trigger's aria-label defaults to Source {index}: {title} (or Source: {title} with no index). Override it with the label prop when you need different wording.

Named popover

The chip opens a Popover; the same aria-label lands on the panel, so the opened dialog is named rather than anonymous. Keyboard and focus behaviour (open, close on Escape, focus return) come from the underlying Popover primitive.

Policy-checked link

The outbound link runs the same strict urlPolicy as the streaming-markdown engine. A blocked or absent URL yields no link at all — only the title and snippet — so untrusted source URLs can never smuggle a dangerous scheme into the popover.

04 API Reference

11 props
11 props 1 required

No matching properties

No matching properties

05 Installation

Import

Loading...
Loading syntax highlighting...