Booting Environment...

Floating Dock

A Mac-OS style dock that floats and smoothly scales its items based on mouse proximity. Includes a mobile-responsive expanding menu.

Installation

npx raya-ui@latest add floating-dock

File Structure

your-project
components
ui
floating-dock
FloatingDock.vue
FloatingDockDesktop.vue
FloatingDockMobile.vue
FloatingDockIcon.vue

API Reference

Props

items
Array<{ title: string, icon: Component, href: string }>

Array of items to render in the dock. Each requires a title, a Vue component for the icon (e.g., from lucide-vue-next), and an href link.

desktopClass
string
""

Tailwind classes applied to the desktop container. Used primarily for absolute positioning.

mobileClass
string
""

Tailwind classes applied to the mobile expanding button container.

Settings
5