Skip to content
PixiKit

Magnify Dock

A macOS-style dock: icons swell under the pointer on a spring, hop when clicked, and carry labels, open-app dots, badges and right-click menus.

pixikit.com/docs/components/magnify-dock

Customize

Position
Theme
Base item size50px
Magnification70px
Distance200px
Panel height68px
Gap10px
Roundness0.50
Spring mass0.10
Spring stiffness150
Spring damping12
Bounce
Auto hide
Tiles
Show labels
Show indicators
Show badges
Badge color
Accent color

Props

22
NameTypeDefaultDescription
itemsMagnifyDockItemData[]DEFAULT_ITEMSThe apps in the dock: `{ icon, label, onClick, className, active, badge, menu }`, or `{ separator: true }` to divide groups.
position"bottom" | "top" | "left" | "right""bottom"The edge of the nearest positioned parent the dock sits on. Icons grow away from that edge.
theme"dark" | "light""dark"Colors of the panel, tiles, labels and menus, made for dark or light pages.
baseItemSizenumber50Size of each icon at rest, in px. The dock shrinks evenly when its parent is too small.
magnificationnumber70Size of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off.
distancenumber200How far from the pointer icons still grow, in px.
panelHeightnumber68Thickness of the dock bar, in px. Icons rise out of it as they grow.
gapnumber10Space between icons, in px.
roundnessnumber0.5Corner rounding of the tiles and the bar, from square at 0 to circles at 1.
springMassnumber0.1Mass of the spring icons grow and shrink with.
springStiffnessnumber150Stiffness of the spring. Higher is faster.
springDampingnumber12Damping of the spring. Low values let icons overshoot and wobble.
bouncebooleantrueIcons hop when clicked, like apps launching.
autoHidebooleanfalseSlides the dock off its edge until the pointer comes near that edge of the parent.
tilesbooleantrueDraws a rounded tile behind each icon.
showLabelsbooleantrueShows the label of the hovered or focused icon in a tooltip.
showIndicatorsbooleantrueShows a dot next to items marked active.
showBadgesbooleantrueShows the notification badges set on items.
badgeColorstring"#ff453a"Fill color of the notification badges.
accentColorstring"#0a84ff"Color of the highlighted row in menus and of the keyboard focus ring.
classNamestring""
styleCSSPropertiesNone

More navigation components in Pro

View all

Related