Skip to content

Magnifying Dock

Pro

A row of icons that grow and lift toward the pointer, the nearest one most. One name label slides from icon to icon.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Magnifying Dock needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
23
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put an icon and a label in each item, and give the root an aria-label.

app-dock.tsx

MagnifyingDock

<div>
PropTypeDefaultDescription
classNamestring—
side"bottom""left""right""top""bottom"The screen edge the dock sits on (default bottom). It sets the axis (top and bottom are a row, left and right a column), the side the icons lift away from, and the side of the indicator. The label shows on the far side. Physical: a dock on the left edge stays there in right to left.
size"default""lg""sm"—The item size: sm 36px, default 44px, lg 52px. Unset (the default): default while the dock fits its parent box, and sm when it does not, as on a phone. Give the dock a parent with its own width (not w-fit), so the fit check sees the room. A set size never changes.
magnificationnumber1.32The scale of the icon under the pointer (default 1.32). 1 keeps the size; the lift stays.
liftnumber8How far the icon under the pointer moves away from the screen edge, in px (default 8).
reachnumber2How many items on each side also swell, less with each step (default 2: 75%, then 25%). 0 grows only the item under the pointer.
From Base UIToolbar.RootBase UI docs
disabledboolean—
loopFocusbooleantrueIf true, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MagnifyingDockGroup

<div>
PropTypeDefaultDescription
classNamestring—
From Base UIToolbar.GroupBase UI docs
disabledbooleanfalseWhen true all toolbar items in the group are disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MagnifyingDockItem

<button>
PropTypeDefaultDescription
classNamestring—
From Base UIToolbar.ButtonBase UI docs
disabledbooleanfalseWhen true the item is disabled.
focusableWhenDisabledbooleantrueWhen true the item remains focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

MagnifyingDockLink

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MagnifyingDockIcon

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

MagnifyingDockLabel

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

MagnifyingDockIndicator

<div>
PropTypeDefaultDescription
pulseboolean—
tone"destructive""info""neutral""success""warning"—
variant"default""muted""ring""muted"
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

MagnifyingDockSeparator

<div>
PropTypeDefaultDescription
classNamestring—
From Base UIToolbar.SeparatorBase UI docs
orientation"horizontal""vertical"—The orientation of the separator. Defaults to the opposite of the toolbar's orientation, so a horizontal toolbar renders vertical separators.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for 3 to 10 icon items with short names: apps, tools, or the pages of a site.
  • Put a MagnifyingDockLabel in each item: it names the item, and the dock shows it in one sliding pill.
  • Use MagnifyingDockLink with aria-current="page" for site navigation.
  • Leave about 48px of free room on the far side of the dock for the lift and the name pill.
  • Leave size unset: the dock takes the small size when it does not fit its parent, as on a phone.
  • For a bar of text buttons that act on a selection, use the Action Bar.
  • For a plain row of tool buttons with no motion, use a Toolbar.
TabMoves into the dock and out of it. The dock is one Tab stop.
← →Moves between the items of a row (top and bottom), and loops at the ends.
↑ ↓Moves between the items of a column (left and right).
HomeorEndMoves to the first or the last item.
EnterorSpaceRuns the focused item. Enter opens a focused link.

The dock is a Base UI toolbar: one Tab stop, arrow keys along its axis, Home and End.

Each MagnifyingDockLabel stays in its item as the name of the item. The sliding pill is a copy with aria-hidden.

Items are 36, 44, or 52px, so the default and large sizes are full touch targets.

Swell
statusPop · the icon scales to 1.32 and lifts 8px, its neighbours less
Name pill
glide · slides and changes width between items
Pill in and out
fade · 150ms in, 90ms out
Icon opacity
hover · 150ms · 50% at rest, 100% under the pointer
Press
statusPop · the icon sinks to 94% of its swell

Built with

Installs with Magnifying Dock

Components
Dot,Separator
  1. AddedMagnifying Dock, with Dot, Separator.
Open the release