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/confidence-logprob-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.

Confidence Logprob Hatch

ns-ui/confidence-logprob-hatch
RemovedComponent

Hand-hatched underlines under low-confidence tokens, stroke density mapping straight to logprob doubt in three buckets, with a hover/focus popover naming what the model almost said instead.

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/confidence-logprob-hatch.json

Source

registry/core/confidence-logprob-hatch/component.tsxdesign.helpmarq.com/r/confidence-logprob-hatch.json · first 6 KB
1"use client";
2
3import {
4 useEffect,
5 useId,
6 useLayoutEffect,
7 useMemo,
8 useRef,
9 useState,
10 type FocusEvent as ReactFocusEvent,
11 type KeyboardEvent as ReactKeyboardEvent,
12} from "react";
13
14// ---------------------------------------------------------------------------
15// PencilHedge — token-level model uncertainty rendered as pencil hesitation.
16// A span the model was unsure about gets a 4px hand-hatched underline built
17// from ONE shared SVG <pattern> per doubt bucket (sparse / medium /
18// cross-hatch — a draftsman going over a line once, twice, or crossed), fed
19// by a single generation's logprobs: no resampling, cheap enough for every
20// message. The words themselves NEVER change weight, blur or opacity — that
21// is the failure mode this design exists to avoid, unlike an ink-reveal
22// treatment. Density is a shape channel (line count/angle), not a hue, so it
23// reads under every theme and every color-vision deficiency.
24//
25// Hover or focus on a hatched span opens a small popover (12px / rounded-md)
26// listing the runner-up tokens the model almost said as mono rows — "said
27// 0.44", "almost 0.31" — each alternative a real button that rewrites the
28// span in place with a short settle transition and clears its marks (a
29// resolved token reads exactly like a confident one). The popover is a
30// plain DOM child of the hatched span itself, not a portal: mouseenter/
31// mouseleave don't fire crossing into a descendant, so moving the pointer
32// from text down into the popover never flickers it shut, and Tab reaches
33// its buttons in natural document order with no focus-stealing hacks.
34//
35// A11y: the hatched span is role="note" tabIndex=0 with an aria-label
36// carrying the doubt — "low confidence: <text>" by default, expanded to
37// name the alternatives with percentages when the caller opts a message
38// into verbose mode, so default reading flow stays quiet. The popover is
39// role="dialog" with an aria-label naming the token it's alternatives-for.
40// Escape closes from anywhere (span or popover) and returns focus to the
41// span, never trapping. Confident text is never wrapped at all — plain
42// text, no role, no tabIndex, nothing to land on.
43//
44// Colors are the five registry tokens only (--background --foreground
45// --muted --border --accent), read as CSS custom properties directly in
46// SVG attributes — no canvas here, so no getComputedStyle dance is needed.
47// prefers-reduced-motion drops the settle transition; the rewrite still
48// … truncated

Files it writes

  • registry/core/confidence-logprob-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