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| Name | Type | Default | Description |
|---|---|---|---|
items | MagnifyDockItemData[] | DEFAULT_ITEMS | The 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. |
baseItemSize | number | 50 | Size of each icon at rest, in px. The dock shrinks evenly when its parent is too small. |
magnification | number | 70 | Size of the icon right under the pointer, in px. Set it to baseItemSize to turn magnifying off. |
distance | number | 200 | How far from the pointer icons still grow, in px. |
panelHeight | number | 68 | Thickness of the dock bar, in px. Icons rise out of it as they grow. |
gap | number | 10 | Space between icons, in px. |
roundness | number | 0.5 | Corner rounding of the tiles and the bar, from square at 0 to circles at 1. |
springMass | number | 0.1 | Mass of the spring icons grow and shrink with. |
springStiffness | number | 150 | Stiffness of the spring. Higher is faster. |
springDamping | number | 12 | Damping of the spring. Low values let icons overshoot and wobble. |
bounce | boolean | true | Icons hop when clicked, like apps launching. |
autoHide | boolean | false | Slides the dock off its edge until the pointer comes near that edge of the parent. |
tiles | boolean | true | Draws a rounded tile behind each icon. |
showLabels | boolean | true | Shows the label of the hovered or focused icon in a tooltip. |
showIndicators | boolean | true | Shows a dot next to items marked active. |
showBadges | boolean | true | Shows the notification badges set on items. |
badgeColor | string | "#ff453a" | Fill color of the notification badges. |
accentColor | string | "#0a84ff" | Color of the highlighted row in menus and of the keyboard focus ring. |
className | string | "" | |
style | CSSProperties | None |