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-hatch
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 Hatch

ns-ui/citation-grounding-hatch
RemovedComponent

A per-sentence grounding trace under an AI answer: solid where a source backs the claim, a bare hairline where the model is inferring alone, diagonal hatch where a source contradicts it — shape-encoded, never color, with a static legend keying each mark to its meaning and a click-to-raise source panel.

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-hatch.json

Source

registry/core/citation-grounding-hatch/component.tsxdesign.helpmarq.com/r/citation-grounding-hatch.json · first 6 KB
1"use client";
2
3import { useEffect, useMemo, useRef, useState } from "react";
4
5// BedrockTrace — a grounding instrument strip for a RAG answer. Citation
6// pills answer "what backs this claim"; this answers "how much of the WHOLE
7// answer is actually supported", including the dangerous unsupported middle
8// citation pills silently skip. One 3px core-sample track runs under the
9// prose, cut into one segment per sentence: a thick solid bar where a source
10// grounds the claim, a bare hairline where the model is inferring on its own
11// (the gap is drawn, not omitted), and a diagonal hatch where a source
12// actively contradicts the claim. Grounded/contradicted/unsupported is
13// shape-and-pattern encoded — solid / absent / hatched — never color, so it
14// survives grayscale and color-blindness. A static text legend ("Grounded /
15// Unsupported / Contradicted", each next to its own always-rendered swatch)
16// sits above the track so the encoding reads at rest, before anyone hovers,
17// focuses, or clicks a segment — the marks alone were review feedback
18// (twice) as illegible without that key.
19//
20// Every segment is a real <button>, labeled "Sentence N: supported by
21// Source B" / "no source" / "contradicted by Source C". Hovering OR
22// focusing a segment brightens its sentence in the prose above (and vice
23// versa) via a shared `data-sentence-id`, so keyboard users get the same
24// linkage sighted mouse users do. Clicking a grounded or contradicted
25// segment raises a glass detail panel with that source's excerpt, the
26// matching span underlined in accent — and the same accent underline lands
27// on the sentence itself, so the claim and its evidence light up together.
28// The panel expands via a CSS grid-template-rows 0fr->1fr trick (no
29// JS height measurement, no clipping-by-ancestor hazard).
30//
31// Segments reveal left-to-right via SVG stroke-dashoffset (pathLength=1, so
32// no pixel-length measurement is needed) starting ~300ms after a sentence
33// first appears in the `sentences` array — the trace visibly catches up to
34// prose that is still streaming in. A summary line ("4 of 6 sentences
35// grounded, 1 contradiction") is aria-live=polite and IS the sighted
36// digest, not a hidden echo of it. Zero dependencies; no canvas; every
37// color is a token (--background --foreground --muted --border --accent),
38// --accent appearing only on focus rings and the two interactive
39// highlights above. prefers-reduced-motion drops all transitions — the
40// … truncated

Files it writes

  • registry/core/citation-grounding-hatch/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