āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/magicuidesign/magicui/components/dock ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @magicui/dock
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="dock" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>import { Home, Search, Settings } from "lucide-react"
import { Dock, DockIcon } from "@/components/ui/dock"
<Dock>
<DockIcon>
<Home />
<Settings />
<Search />
</DockIcon>
</Dock>
| Prop | Type | Default | Description |
| ---------------------- | ----------- | ---------- | ------------------------------------ |
| className | string | - | Custom CSS class for styling |
| children | ReactNode | - | Children elements |
| iconSize | number | 40 | Size of the icon |
| iconMagnification | number | 60 | Level of icon magnification |
| iconDistance | number | 140 | Distance from cursor to magnify icon |
| direction | string | "middle" | Direction of the dock |
| disableMagnification | boolean | false | Disable Magnification on hover |
| Prop | Type | Default | Description |
| --------------- | ------------------- | ------- | ------------------------------------ |
| size | number | 40 | Size of the icon |
| magnification | number | 60 | Level of icon magnification |
| distance | number | 140 | Distance from cursor to magnify icon |
| mouseX | any | - | Mouse X position for magnification |
| className | string | - | Custom CSS class for styling |
| children | React.ReactNode | - | Children elements |
| props | PropsWithChildren | - | Additional props |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā