BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ns-ui/citation-grounding-gap
This component no longer exists. It was in ns-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-07 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Citation Grounding Gap

ns-ui/citation-grounding-gap
RemovedComponent

A single SVG baseline under a RAG answer's prose — a solid 1px plank under every sourced sentence, a fading 3-dash gap wherever a claim has none — so grounding coverage reads at a glance instead of hover-hunting citation pills.

Live preview

live · rendered by the registry
Rendered by ns-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://design.helpmarq.com/r/citation-grounding-gap.json

Source

registry/core/citation-grounding-gap/component.tsxdesign.helpmarq.com/r/citation-grounding-gap.json · first 6 KB
1"use client";
2
3import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState, type KeyboardEvent } from "react";
4
5// TrestleGap — grounding coverage drawn as a walkable bridge under a RAG
6// answer. Citation pills (citation-inline-card) and coverage tracks (citation-grounding-hatch)
7// both put the evidence signal in a SEPARATE element beside or below the
8// prose; here it runs directly under the words themselves — one SVG layer,
9// measured off the live sentence buttons with Range.getClientRects() (so it
10// tracks real wrapped line boxes, not a straight synthetic strip), drawing a
11// solid 1px plank under every grounded sentence and letting the plank
12// visibly END — three fading dashes, an open gap, three dashes fading back
13// in — wherever a claim has no retrieved source. The inversion is the point:
14// the ABSENCE of grounding is the loudest mark on the page, not a pill that
15// was simply never placed. A grounded sentence is a real <button>; Enter (or
16// a click anywhere on its plank) springs up a bottom sheet with the source
17// excerpt, matched words underlined in the same plank stroke (again measured
18// with Range.getClientRects, this time over the excerpt's own text node, so
19// resizing the sheet keeps the underlines glued to the words). An ungrounded
20// sentence's gap is live: clicking it (or pressing "f" while it's focused)
21// fires a targeted find-support lookup for just that claim, announced
22// through an aria-live region, and on success the plank draws itself in
23// left-to-right via stroke-dashoffset rather than popping solid. Sentences
24// carry the accessibility semantics (aria-description: "supported by <title>"
25// / "no source found"); the SVG is aria-hidden drawing underneath them, never
26// the other way around. Every stroke is --border/--muted/--foreground —
27// --accent is reserved for the sheet's focus ring and link, never the marks
28// themselves. DOM+SVG+CSS only.
29
30export interface TrestleSource {
31 title: string;
32 excerpt: string;
33 url?: string;
34}
35
36export interface TrestleSentence {
37 id: string;
38 text: string;
39 /** omit, or null, for a claim with no retrieval support — its plank is drawn as a gap */
40 source?: TrestleSource | null;
41}
42
43export interface TrestleGapProps {
44 sentences: TrestleSentence[];
45 /** Runs a retrieval attempt for one ungrounded sentence. Resolve a source on
46 * success, or null/undefined if nothing was found. Defaults to a small
47// … truncated

Files it writes

  • registry/core/citation-grounding-gap/component.tsx

Facts

Registry
ns-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-02
Last confirmed
12 days ago

Go to the source

Docs on ns-ui design.helpmarq.com nikolas-sapa/ns-ui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex