mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
39 lines
932 B
TypeScript
39 lines
932 B
TypeScript
import code from '@content/Components/GooeyNav/GooeyNav.vue?raw';
|
|
import { createCodeObject } from '../../../types/code';
|
|
|
|
export const gooeyNav = createCodeObject(code, 'Components/GooeyNav', {
|
|
usage: `<template>
|
|
<GooeyNav
|
|
:items="navItems"
|
|
:animation-time="600"
|
|
:particle-count="15"
|
|
:particle-distances="[90, 10]"
|
|
:particle-r="100"
|
|
:time-variance="300"
|
|
:colors="[1, 2, 3, 1, 2, 3, 1, 4]"
|
|
:initial-active-index="0"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import GooeyNav from "./GooeyNav.vue";
|
|
|
|
const navItems = [
|
|
{ label: "Home", href: "/" },
|
|
{ label: "About", href: "/about" },
|
|
{ label: "Services", href: "/services" },
|
|
{ label: "Contact", href: "/contact" },
|
|
];
|
|
</script>
|
|
|
|
<style>
|
|
/* Add these CSS custom properties to your global styles */
|
|
:root {
|
|
--color-1: #ff6b6b;
|
|
--color-2: #4ecdc4;
|
|
--color-3: #45b7d1;
|
|
--color-4: #f9ca24;
|
|
}
|
|
</style>`
|
|
});
|