Added <RippleGrid /> background

This commit is contained in:
Utkarsh-Singhal-26
2025-07-19 10:08:42 +05:30
parent 8349104112
commit 6f346506d3
5 changed files with 480 additions and 1 deletions

View File

@@ -95,7 +95,8 @@ export const CATEGORIES = [
'Orb',
'Ballpit',
'Liquid Chrome',
'Grid Distortion'
'Grid Distortion',
'Ripple Grid',
]
}
];

View File

@@ -82,6 +82,7 @@ const backgrounds = {
'ballpit': () => import('../demo/Backgrounds/BallpitDemo.vue'),
'liquid-chrome': () => import('../demo/Backgrounds/LiquidChromeDemo.vue'),
'grid-distortion': () => import('../demo/Backgrounds/GridDistortionDemo.vue'),
'ripple-grid': () => import('../demo/Backgrounds/RippleGridDemo.vue'),
};
export const componentMap = {

View File

@@ -0,0 +1,26 @@
import code from '@content/Backgrounds/RippleGrid/RippleGrid.vue?raw';
import type { CodeObject } from '../../../types/code';
export const rippleGrid: CodeObject = {
cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/RippleGrid`,
installation: `npm install ogl`,
usage: `<template>
<div class="relative overflow-hidden h-[600px]">
<RippleGrid
:enable-rainbow="false"
:grid-color="#ffffff"
:ripple-intensity="0.05"
:grid-size="10"
:grid-thickness="15"
:mouse-interaction="true"
:mouse-interaction-radius="1.2"
:opacity="0.8"
/>
</div>
</template>
<script setup lang="ts">
import RippleGrid from "./RippleGrid.vue";
</script>`,
code
};