Component Boom

This commit is contained in:
David Haz
2025-07-10 15:36:38 +03:00
parent a4982577ad
commit 9b3465b04d
135 changed files with 16697 additions and 60 deletions

View File

@@ -0,0 +1,40 @@
import code from '@content/Components/GooeyNav/GooeyNav.vue?raw'
import type { CodeObject } from '../../../types/code'
export const gooeyNav: CodeObject = {
cli: `npx jsrepo add https://vue-bits.dev/ui/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>`,
code
}