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/button-glass
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.

Button Glass

ns-ui/button-glass
RemovedComponent

Liquid-glass button with translucent blurred surface and press states.

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/button-glass.json

Source

registry/core/button-glass/component.tsxdesign.helpmarq.com/r/button-glass.json
1"use client";
2
3import { useState, type ButtonHTMLAttributes, type PointerEvent } from "react";
4
5export function GlassButton({
6 className = "",
7 children,
8 onPointerEnter,
9 onPointerLeave,
10 onPointerDown,
11 onPointerUp,
12 onPointerCancel,
13 ...props
14}: ButtonHTMLAttributes<HTMLButtonElement>) {
15 // Real pointers drive the native `:hover`/`:active` pseudo-classes below just
16 // fine. But a synthetic (`dispatchEvent`, `isTrusted: false`) pointer never
17 // reaches the UA's own hover/activation state machine — Chromium confirmed
18 // not to flip `:hover`/`:active` for script-dispatched events, even though
19 // the same event fires every JS listener bound to it. That left this button
20 // dead in the landing-page card, whose autoplay driver only has synthetic
21 // events to offer. Mirroring both states into JS-tracked data-attributes
22 // (additive, not a replacement) gives the driver something that responds,
23 // without changing anything for a real mouse, touch, or keyboard press.
24 const [hover, setHover] = useState(false);
25 const [pressed, setPressed] = useState(false);
26
27 return (
28 <button
29 data-hover={hover}
30 data-press={pressed}
31 onPointerEnter={(e: PointerEvent<HTMLButtonElement>) => {
32 setHover(true);
33 onPointerEnter?.(e);
34 }}
35 onPointerLeave={(e: PointerEvent<HTMLButtonElement>) => {
36 setHover(false);
37 setPressed(false);
38 onPointerLeave?.(e);
39 }}
40 onPointerDown={(e: PointerEvent<HTMLButtonElement>) => {
41 setPressed(true);
42 onPointerDown?.(e);
43 }}
44 onPointerUp={(e: PointerEvent<HTMLButtonElement>) => {
45 setPressed(false);
46 onPointerUp?.(e);
47 }}
48 onPointerCancel={(e: PointerEvent<HTMLButtonElement>) => {
49 setPressed(false);
50 onPointerCancel?.(e);
51 }}
52 className={[
53 "group relative inline-flex items-center justify-center overflow-hidden rounded-sm px-5 py-2.5 text-sm font-medium text-foreground",
54 // glass material: translucent fill, heavy blur, saturation boost
55 "bg-black/[0.04] backdrop-blur-xl backdrop-saturate-150 dark:bg-white/[0.06]",
56 "border border-black/10 dark:border-white/10",
57 // depth: top specular edge (inset) + soft lift shadow
58 "shadow-[inset_0_1px_0_0_rgba(255,255,255,0.5),0_4px_16px_-4px_rgba(0,0,0,0.15)]",
59 "dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.12),0_8px_24px_-8px_rgba(0,0,0,0.5)]",
60// … truncated

Files it writes

  • registry/core/button-glass/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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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