Docs
Dock
Dock
An interactive icon dock that smoothly scales icons on hover, providing a responsive and engaging visual effect.
Loading...
Installation
Props
Dock props
Prop | Type | Description | Default |
---|---|---|---|
className | string | Additional CSS classes to apply to the Dock container | - |
children | React.ReactNode | The Dock icons to be displayed | - |
maxAdditionalSize | number | The maximum additional size in pixels for icons when hovered, to create the scaling effect | 5 |
iconSize | number | The base size of each icon (in pixels) | 50 |
DockIcon props
Prop | Type | Description | Default |
---|---|---|---|
className | string | Additional CSS classes to apply to the DockIcon | - |
children | React.ReactNode | The content inside the DockIcon, typically an SVG or icon element | - |
href | string | URL that the icon will link to when clicked | - |
name | string | The name displayed on hover | - |
iconSize | number | The base size of the icon in pixels | - |