More Premium Hugo Themes Premium Vue Themes

Vue Stripe Menu

Creating a navigation menu with animations like on Stripe

Vue Stripe Menu

Creating a navigation menu with animations like on Stripe

Author Avatar Theme by oleksiikhr
Github Stars Github Stars: 535
Last Commit Last Commit: Oct 3, 2022 -
First Commit Created: May 5, 2023 -
default image

Overview

The Vue Stripe Menu is a library created for Vue 3 that allows users to create navigation menus with animations similar to those found on the Stripe website. It provides a range of features and options for customizing the menu, including different event triggers, offset settings, and animation speeds.

Features

  • Menu: Allows users to define the menu items and their descriptions using an array.
  • Element: Provides the option to specify a custom root element for the menu.
  • Screen Offset: Allows users to set an offset from the window screen for the menu.
  • Dropdown Offset: Provides the option to set an offset from the dropdown menu.
  • Transition Timeout: Allows users to customize the animation speed of the menu.
  • Handler: Allows users to choose whether the dropdown menu opens on hover or click.
  • Align: Provides options for center, left, or right alignment of the dropdown menu.

Installation

To install the Vue Stripe Menu library in your project, follow these steps:

  1. Import the components:
import { Menu } from 'vue-stripe-menu';
  1. Add the component to your Vue template:
components: {
  Menu
}
  1. Add CSS/SCSS styles to your project:
@import 'vue-stripe-menu/dist/vue-stripe-menu.css';

// Or if you are using SCSS
@import 'vue-stripe-menu/src/scss/index.scss';
  1. Use the component in your Vue template:
<Menu :menu="menuItems">
  <template #default="{ item, index }">
    <!-- Main content for the dropdown list -->
  </template>

  <template #before-nav>
    <!-- Content to the left of the list -->
  </template>

  <template #after-nav>
    <!-- Content to the right of the list -->
  </template>

  <template #title="{ item, index }">
    <!-- Replace the output of menu[i].title with your own -->
  </template>
</Menu>

Summary

The Vue Stripe Menu library is a useful tool for creating navigation menus with animations like those found on the Stripe website. It offers a range of features for customization and provides an easy installation process. By following the installation guide and utilizing the available options, users can create stylish and interactive menus for their Vue 3 projects.