Dock

A macOS-style dock with magnifying icons as you hover over them.

API

Dock

Prop NameTypeDescription
classstringAdditional classes to apply to the dock container.
magnificationnumberMagnification factor for the dock icons on hover (default: 60).
distancenumberDistance from the icon center where magnification applies.
directionstringAlignment of icons (top, middle, bottom) (default: middle).
Slot NameDescription
defaultDock icons or other child components to be displayed.

DockIcon

Slot NameDescription
defaultComponent or icon to be displayed inside the dock icon.

Component Code

You can copy and paste the following code to create these components:

Dock.vue
DockIcon.vue

Credits

  • Credits to macOS Dock for the design inspiration and the fantastic hover magnification effect.