File tree Expand file tree Collapse file tree 5 files changed +1187
-0
lines changed Expand file tree Collapse file tree 5 files changed +1187
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export const CATEGORIES = [
8383 'Flying Posters' ,
8484 'Folder' ,
8585 'Card Swap' ,
86+ 'Infinite Menu' ,
8687 'Infinite Scroll' ,
8788 'Tilted Card' ,
8889 'Glass Icons' ,
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ const components = {
8484 'scroll-stack' : ( ) => import ( '../demo/Components/ScrollStackDemo.vue' ) ,
8585 'bubble-menu' : ( ) => import ( '../demo/Components/BubbleMenuDemo.vue' ) ,
8686 'staggered-menu' : ( ) => import ( '../demo/Components/StaggeredMenuDemo.vue' ) ,
87+ 'infinite-menu' : ( ) => import ( '../demo/Components/InfiniteMenuDemo.vue' ) ,
8788} ;
8889
8990const backgrounds = {
Original file line number Diff line number Diff line change 1+ import code from '@/content/Components/InfiniteMenu/InfiniteMenu.vue?raw' ;
2+ import { createCodeObject } from '@/types/code' ;
3+
4+ export const infiniteMenu = createCodeObject ( code , 'Components/InfiniteMenu' , {
5+ usage : `<template>
6+ <InfiniteMenu :items="menuItems" />
7+ </template>
8+
9+ <script setup lang="ts">
10+ import InfiniteMenu from "./InfiniteMenu.vue";
11+
12+ const menuItems = [
13+ {
14+ image: 'https://images.unsplash.com/photo-1517180102446-f3ece451e9d8?w=800&h=800&fit=crop',
15+ title: 'Sarah Chen',
16+ description: 'UI/UX Designer',
17+ link: 'https://dribbble.com/'
18+ },
19+ {
20+ image: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&h=800&fit=crop',
21+ title: 'Mike Johnson',
22+ description: 'Frontend Developer',
23+ link: 'https://github.com/'
24+ },
25+ {
26+ image: 'https://images.unsplash.com/photo-1494790108755-2616b612b793?w=800&h=800&fit=crop',
27+ title: 'Emma Wilson',
28+ description: 'Product Designer',
29+ link: 'https://behance.net/'
30+ }
31+ ];
32+ </script>`
33+ } ) ;
You can’t perform that action at this time.
0 commit comments