mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
23 lines
797 B
TypeScript
23 lines
797 B
TypeScript
import code from '@content/Components/FlowingMenu/FlowingMenu.vue?raw'
|
|
import type { CodeObject } from '../../../types/code'
|
|
|
|
export const flowingMenu: CodeObject = {
|
|
cli: `npx jsrepo add https://vue-bits.dev/ui/Components/FlowingMenu`,
|
|
installation: `npm install gsap`,
|
|
usage: `<template>
|
|
<FlowingMenu :items="items" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import FlowingMenu from "./FlowingMenu.vue";
|
|
|
|
const items = [
|
|
{ link: '#', text: 'Mojave', image: 'https://picsum.photos/600/400?random=1' },
|
|
{ link: '#', text: 'Sonoma', image: 'https://picsum.photos/600/400?random=2' },
|
|
{ link: '#', text: 'Monterey', image: 'https://picsum.photos/600/400?random=3' },
|
|
{ link: '#', text: 'Sequoia', image: 'https://picsum.photos/600/400?random=4' }
|
|
];
|
|
</script>`,
|
|
code
|
|
}
|