Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add macos-dockImport the component
Import the component into your Svelte file:
import { MacosDock } from "$lib/motion-core";import { MacosDock } from "$lib/motion-core";Usage
Props
MacosDock
| Prop | Type | Default |
|---|---|---|
items | DockItem[] | — |
baseWidth | number | 4 |
magnification | number | 1.5 |
distance | number | 3 |
class | string | — |