BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/einui/glass-dock

Glass Dock

einui/glass-dock
FreeComponent

A dock component with glass morphism styling and smooth animations.

Live preview

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

Install it

npx shadcn@latest add https://ui.eindev.ir/r/glass-dock.json

Source

registry/innovative/glass-dock.tsxui.eindev.ir/r/glass-dock.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { cn } from "@/lib/utils"
5
6interface DockItem {
7 id: string
8 icon: React.ReactNode
9 label: string
10 href?: string
11 onClick?: () => void
12 active?: boolean
13}
14
15type DockOrientation = "horizontal" | "vertical"
16
17interface GlassDockProps extends React.HTMLAttributes<HTMLDivElement> {
18 items: DockItem[]
19 magnification?: number
20 baseSize?: number
21 maxSize?: number
22 orientation?: DockOrientation
23 glassIntensity?: "low" | "medium" | "high"
24}
25
26const glassConfig = {
27 low: {
28 bg: "bg-white/5",
29 blur: "backdrop-blur-xl",
30 border: "border-white/10",
31 itemBg: "bg-white/5",
32 itemHover: "hover:bg-white/10",
33 },
34 medium: {
35 bg: "bg-white/10",
36 blur: "backdrop-blur-2xl",
37 border: "border-white/20",
38 itemBg: "bg-white/10",
39 itemHover: "hover:bg-white/20",
40 },
41 high: {
42 bg: "bg-white/15",
43 blur: "backdrop-blur-3xl",
44 border: "border-white/30",
45 itemBg: "bg-white/15",
46 itemHover: "hover:bg-white/25",
47 },
48}
49
50const GlassDock = React.forwardRef<HTMLDivElement, GlassDockProps>(
51 (
52 {
53 className,
54 items,
55 magnification = 1.5,
56 baseSize = 48,
57 maxSize = 72,
58 orientation = "horizontal",
59 glassIntensity = "high",
60 ...props
61 },
62 ref,
63 ) => {
64 const [hoveredIndex, setHoveredIndex] = React.useState<number | null>(null)
65 const [mousePos, setMousePos] = React.useState<number | null>(null)
66 const dockRef = React.useRef<HTMLDivElement>(null)
67 const glass = glassConfig[glassIntensity]
68 const isVertical = orientation === "vertical"
69
70 const handleMouseMove = React.useCallback(
71 (e: React.MouseEvent) => {
72 if (!dockRef.current) return
73 const rect = dockRef.current.getBoundingClientRect()
74 setMousePos(isVertical ? e.clientY - rect.top : e.clientX - rect.left)
75 },
76 [isVertical],
77 )
78
79 const handleMouseLeave = React.useCallback(() => {
80 setMousePos(null)
81 setHoveredIndex(null)
82 }, [])
83
84 const getScale = React.useCallback(
85 (index: number) => {
86 if (mousePos === null) return 1
87
88 const itemSize = baseSize + 16
89 const itemCenter = index * itemSize + itemSize / 2
90 const distance = Math.abs(mousePos - itemCenter)
91 const maxDistance = itemSize * 2
92
93 if (distance > maxDistance) return 1
94
95 const scale = 1 + (magnification - 1) * (1 - distance / maxDistance)
96 return Math.min(scale, magnification)
97 },
98// … truncated

Files it writes

  • registry/innovative/glass-dock.tsx

Facts

Registry
einui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

Docs on einui ui.eindev.ir einui/einui on GitHub Raw registry item This item as JSON

More from einui

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Base Widgetbase-widgeteinuiComponentsFree1 dep
Calendar Widgetscalendar-widgeteinuiComponentsFree1 dep
Clock Widgetsclock-widgeteinuiComponentsFree1 dep
Glass Alert Dialogglass-alert-dialogeinuiComponentsFree1 dep
Glass Avatarglass-avatareinuiComponentsFree1 dep
Glass Badgeglass-badgeeinuiComponentsFree1 dep
Glass Breadcrumbglass-breadcrumbeinuiComponentsFree1 dep
Glass Buttonglass-buttoneinuiComponentsFree2 deps

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