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/banner-tear-stub
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.

Banner Tear Stub

ns-ui/banner-tear-stub
RemovedComponent

A dismissible notice with a perforated edge: dismissing rips the panel off along the perforation, leaving a small permanent stub that reopens it.

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/banner-tear-stub.json

Source

registry/core/banner-tear-stub/component.tsxdesign.helpmarq.com/r/banner-tear-stub.json · first 6 KB
1"use client";
2
3import { useCallback, useEffect, useId, useRef, useState, type ReactNode } from "react";
4
5// ---------------------------------------------------------------------------
6// TearStub — a dismissible notice with a perforated edge, 32px in from the
7// leading edge. Dismissing tears the panel off along that perforation with a
8// quick ~1deg rip (translate + rotate + fade, ease-out-expo) while a slim
9// stub stays seated flush at the edge — a permanent, always-legible record
10// that a notice exists, exactly like the stub a receipt book keeps after the
11// check tears out. Clicking the stub reopens the banner, reversing the rip
12// and springing the row's height back open. The stub itself is always
13// present as decoration while attached (just the icon, non-interactive) and
14// is promoted into the Reopen button only once the panel is actually gone —
15// so there is never a pointless enabled control sitting idle at rest.
16//
17// Differs from truncation-word-count on purpose: that folds content away in place and
18// keeps the same object at a smaller size. Here the remainder is a distinct,
19// much smaller object (a torn stub, not a folded panel) and the physical
20// contract is that the record is never destroyed, only shrunk — dismissal
21// is always recoverable.
22//
23// This component doesn't force a width — it's an inline flex row sized to
24// its content. Pass className="w-full" for a page-width banner; either way,
25// once the panel is torn off, only the stub column remains in the row, so
26// the whole thing naturally shrinks down to a small tab rather than leaving
27// a wide empty strip.
28//
29// DOM + CSS only, no canvas. Colors come from --background/--surface/
30// --foreground/--muted/--border/--accent only. prefers-reduced-motion swaps
31// the rip for a plain crossfade (handled by the stylesheet below) and the
32// height change for a short linear resize instead of a spring (handled in
33// JS, since a spring is inherently a physical motion).
34// ---------------------------------------------------------------------------
35
36const TEAR_MS = 300;
37const TEAR_MS_REDUCED = 160;
38const TEAR_EASE = "cubic-bezier(0.22, 1, 0.36, 1)"; // ease-out-expo-ish
39const SPRING_STIFFNESS = 230; // s^-2
40const SPRING_DAMPING = 26; // ~critically damped, one barely-visible settle
41const STUB_HIT_OVERHANG = 6; // each side of the 32px (w-8) column — 44px touch target
42
43function NoticeIcon({ urgent, className }: { urgent: boolean; className?: string }) {
44 if (urgent) {
45// … truncated

Files it writes

  • registry/core/banner-tear-stub/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