BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lore-glass/glass-dock

Glass Dock

lore-glass/glass-dock
FreeComponent

A macOS-style liquid-glass application dock built on the refraction engine: an always-glass bar that refracts the content behind it, with crisp icons on top. The selected item rests as a soft grey pill; tap another item or grab and drag the pill and it lifts into a glass lens that refracts and magnifies each icon and label it travels over, then settles back into a pill. The selection glass blends seamlessly into the bar (no rectangular box). Only the selected pill is draggable; tapping another item glides the lens to it.

Live preview

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

Install it

npx shadcn@latest add https://loreglasses.com/r/glass-dock.json

Source

registry/default/glass-dock/glass-dock.tsxloreglasses.com/r/glass-dock.json · first 6 KB
1"use client";
2
3import { Glass, isSafariBrowser, useHydrated } from "@/components/ui/glass";
4import {
5 cubicBezier,
6 glassEase,
7 MotionValue,
8 prefersReducedMotion,
9 SpringDriver,
10 tween,
11} from "@/components/ui/glass-motion";
12import { cn } from "@/lib/utils";
13import {
14 type PointerEvent,
15 type ReactNode,
16 useCallback,
17 useEffect,
18 useRef,
19 useState,
20} from "react";
21
22type GlassMode = "individual" | "combined";
23type GlassSpecular = "inside" | "outside" | "none";
24type ShadowTone = "neutral" | "warm" | "cool";
25
26interface LiquidGlassConfig {
27 blur: { enabled: boolean; value: number };
28 mode: GlassMode;
29 refraction: { amount: number; enabled: boolean; thickness: number };
30 shadow: { tone: ShadowTone; value: number };
31 specular: GlassSpecular;
32 translucency: { enabled: boolean; value: number };
33}
34
35const DEFAULT_LIQUID_GLASS: LiquidGlassConfig = {
36 mode: "individual",
37 specular: "inside",
38 blur: { enabled: false, value: 0 },
39 refraction: { enabled: true, amount: 20.2, thickness: 15.9 },
40 translucency: { enabled: true, value: 0 },
41 shadow: { tone: "neutral", value: 22 },
42};
43
44interface ResolvedGlass {
45 chroma: number;
46 edgeHighlight: number;
47 glow: number;
48 scale: number;
49 tint: number;
50}
51
52function resolveGlass(config: LiquidGlassConfig): ResolvedGlass {
53 const refr = config.refraction.enabled ? config.refraction.amount / 100 : 0;
54 const specOn = config.specular !== "none";
55 return {
56 scale: refr * 0.5,
57 chroma: config.refraction.enabled ? Math.min(0.5, refr * 1.5) : 0,
58 tint: config.translucency.enabled ? config.translucency.value / 100 : 0,
59 edgeHighlight: specOn ? 0.3 : 0,
60 glow: specOn ? 0.12 : 0,
61 };
62}
63
64const DOCK_W = 392;
65const DOCK_H = 84;
66const CAP_SCALE = 2;
67const BOTTOM_INSET = 18;
68const PAD_X = 10;
69const PAD_Y = 9;
70const ITEM_GAP = 4;
71const COL = (DOCK_W - 2 * PAD_X - 3 * ITEM_GAP) / 4;
72const LENS_W = COL - 4;
73const LENS_H = 64;
74const PILL_H = 64;
75const PILL_RADIUS = 32;
76const BAR_RADIUS = 42;
77const BAR_GLASS_TRIM = 42;
78const BAR_GLASS_MUL = 0.7;
79const POS_SPRING = { stiffness: 90, damping: 18, restDelta: 0.5, restSpeed: 6 };
80const MAX_MUL = 0.66;
81const LIFT_UP = 0.16;
82const LIFT_DOWN = 0.3;
83const LENS_GROW = 0.2;
84const LENS_TINT = 0.35;
85const ARRIVE = 16;
86const FADE_EASE = cubicBezier(0, 0, 0.58, 1);
87
88const ACCENT = "#58a6ff";
89const IDLE = "rgba(255,255,255,0.82)";
90const HOVER = "#ffffff";
91const BADGE_BG = "#ff514c";
92const PILL_GREY = "rgba(255,255,255,0.16)";
93const PILL_SHADOW =
94// … truncated

What it pulls in

npm packages

  • html2canvas-pro

Other registry items

  • https://loreglasses.com/r/glass.json

Files it writes

  • registry/default/glass-dock/glass-dock.tsx

Facts

Registry
lore-glass
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on lore-glass loreglasses.com Simonstorms/lore-glass on GitHub Raw registry item This item as JSON

More from lore-glass

All 10 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Glassglasslore-glassComponentsFreeno deps · 4 files
Glass Buttonglass-buttonlore-glassComponentsFreeno deps
Glass Dialogglass-dialoglore-glassComponentsFree1 dep
Glass Inputglass-inputlore-glassComponentsFree1 dep
Glass Popoverglass-popoverlore-glassComponentsFree1 dep
Glass Sliderglass-sliderlore-glassComponentsFreeno deps
Glass Switchglass-switchlore-glassComponentsFreeno deps
Glass Tabsglass-tabslore-glassComponentsFree1 dep

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