Measured entry
magicui-dock
A client-side React recreation of a desktop application dock, shipped as Dock and DockIcon source through a shadcn registry item. It uses Tailwind utility classes, Motion springs and transforms for pointer-driven magnification, class-variance-authority for variants, and a shadcn-style cn utility backed by class merging helpers.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 71.2 KB (136.7 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 4m 43s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/dock.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A polished fit for desktop-oriented launchers when the magnification effect earns its Motion dependency. It builds and mounts cleanly in the prepared harness, but the bare failure shows that it needs a shadcn-style setup, especially the cn utility and path alias. Add real interactive elements and accessible names yourself.
Use it if
- You need a compact launcher or navigation strip whose icons magnify around a desktop pointer.
- Your React app already uses Tailwind, Motion, and shadcn-style source components.
- You want control over icon sizing, magnification range, alignment, and custom children.
Skip it if
- Your navigation must arrive with keyboard behavior, link semantics, labels, and focus treatment already defined.
- Most users are on touch devices, where its pointer-distance interaction offers little benefit.
- You want to avoid adding Motion and its associated client-side weight for a small navigation element.
- Your design system does not use Tailwind utilities or shadcn-style path aliases.
Install
| Declared dependencies | motion, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Motion, class-variance-authority, Tailwind CSS, clsx, and tailwind-merge. Provide a cn helper at the expected utility alias or replace that import with your local equivalent, configure the alias, and ensure the file is compiled as a client component. Supply buttons or links, accessible names, and focus styles for each dock item.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/magicuidesign/magicuiAlternatives
Other published entries for the navbar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- hyperui-headers-4editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 19.1KB
- Bare
- pass
- Prov
- NO
- kibo-dialog-stackminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 33.4KB
- Bare
- pass
- Prov
- NO
- ruixen-floating-navbarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 59.9KB
- Bare
- pass
- Prov
- NO
- ruixen-hover-gradient-navbargradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 60.9KB
- Bare
- pass
- Prov
- NO
- ruixen-expandable-menu-navbarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 61.8KB
- Bare
- pass
- Prov
- NO
- hextaui-cardminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 26.7KB
- Bare
- fail
- Prov
- NO