mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-08 16:09:31 -06:00
Component Boom
This commit is contained in:
40
src/constants/code/Components/gooeyNavCode.ts
Normal file
40
src/constants/code/Components/gooeyNavCode.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user