Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐ŸŽˆVue์šฉ ์‚ฌ์šฉ์ž ์ง€์ • ํ”Œ๋กœํŒ… ๋ฉ”๋‰ด

์›น ๋ฐ ์•ฑ ๊ฐœ๋ฐœ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

What you can do

  • ๐ŸŽฏ 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

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
-1
in 15 days
-2
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

Vue Float Menu ๐ŸŽฏ

Vue Float Menu Logo

A modern, draggable floating menu component for Vue 3 applications

Build Status Maintainability DeepScan grade DeepSource Snyk Vulnerabilities Bundle Size Depfu

Vue Float Menu Demo

โœจ 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


Made with โค๏ธ by Prabhu Murthy

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ