npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-float-menu

v2.0.1

Published

smart floating menu for Vue 3

Downloads

1,009

Readme

Vue Float Menu 🎯

Build Status Maintainability DeepScan grade DeepSource Snyk Vulnerabilities Bundle Size Depfu

✨ Features

  • 🎯 Drag & Drop - Freely position your menu anywhere on screen
  • 🧠 Smart Positioning - Automatic edge detection and menu flipping
  • 🌳 Nested Menus - Support for complex menu hierarchies
  • ⌨️ Keyboard Accessible - Full keyboard navigation support
  • 📱 Touch Optimized - Enhanced mobile experience (Touch Guide)
  • Performance - Optimized bundle size (Bundle Guide)
  • 🎨 Customizable - Extensive theming options
  • 🛠 TypeScript - Built with type safety
  • 🎭 Vue 3 - Leverages the latest Vue.js features
  • 📦 Tree-shakeable - Only import what you need

📚 Table of Contents

⚡ Installation

# Using npm
npm install vue-float-menu

# Using yarn
yarn add vue-float-menu

# Using pnpm
pnpm add vue-float-menu

🚀 Quick Start

<template>
  <float-menu position="top left" :dimension="50" :menu-data="items" @select="handleSelection">
    <template #icon>
      <BoxIcon />
    </template>
  </float-menu>
</template>

<script setup>
import { FloatMenu } from 'vue-float-menu';
import 'vue-float-menu/dist/vue-float-menu.css';

const items = [
  { name: 'New' },
  {
    name: 'Edit',
    subMenu: {
      name: 'edit-items',
      items: [{ name: 'Copy' }, { name: 'Paste' }],
    },
  },
  { name: 'Open Recent' },
  { name: 'Save' },
];

const handleSelection = (selectedItem) => {
  console.log('Selected:', selectedItem);
};
</script>

📖 Documentation

Props

| Prop | Type | Default | Description | | ---------------- | --------- | ----------------------------- | ------------------------------------------------------------------------- | | dimension | number | 50 | Size of menu head in pixels | | position | string | 'top left' | Initial position (top left, top right, bottom left, bottom right) | | fixed | boolean | false | Disable dragging and fix position | | menu-dimension | object | { width: 200, height: 300 } | Menu dimensions | | menu-data | array | [] | Menu structure data | | menu-style | string | 'slide-out' | Menu style (slide-out' or accordion) | | flip-on-edges |boolean|false | Auto-flip menu on screen edges | |theme |object |{}` | Custom theme configuration |

Positioning

The menu can be positioned in four corners of the screen:

<float-menu position="bottom right">
  <template #icon>
    <BoxIcon />
  </template>
</float-menu>

Menu Configuration

Configure menu dimensions and style:

<float-menu :dimension="50" :menu-dimension="{ width: 300, height: 400 }" menu-style="accordion">
  <template #icon>
    <BoxIcon />
  </template>
</float-menu>

Styling

Two menu styles are available:

  1. Slide-out (default)
  2. Accordion (mobile-friendly)

Accordion Style

Theming

Customize the appearance with the theme prop:

<float-menu
  :theme="{
    primary: '#00539C',
    textColor: '#000',
    menuBgColor: '#fff',
    textSelectedColor: '#fff',
  }"
>
  Click
</float-menu>

🛠 Development

# Install dependencies
pnpm install

# Start development server
pnpm run dev

# Run linting
pnpm run lint:all

# Build package
pnpm run rollup

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

Distributed under the MIT License. See LICENSE for more information.

👨‍💻 Author

Prabhu Murthy