Migrate <ShapeBlur />

This commit is contained in:
David Haz
2025-07-12 18:34:29 +03:00
parent af0fa8cc31
commit 52ad446958
5 changed files with 490 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ export const CATEGORIES = [
'Lightning',
'Letter Glitch',
'Particles',
'Shape Blur',
'Waves',
'Squares',
'Iridescence',

View File

@@ -62,7 +62,8 @@ const backgrounds = {
'aurora': () => import('../demo/Backgrounds/AuroraDemo.vue'),
'beams': () => import('../demo/Backgrounds/BeamsDemo.vue'),
'grid-motion': () => import('../demo/Backgrounds/GridMotionDemo.vue'),
'hyperspeed': () => import('../demo/Backgrounds/HyperspeedDemo.vue')
'hyperspeed': () => import('../demo/Backgrounds/HyperspeedDemo.vue'),
'shape-blur': () => import('../demo/Backgrounds/ShapeBlurDemo.vue')
};
export const componentMap = {

View File

@@ -0,0 +1,24 @@
import code from '@content/Backgrounds/ShapeBlur/ShapeBlur.vue?raw';
import type { CodeObject } from '../../../types/code';
export const shapeBlur: CodeObject = {
cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/ShapeBlur`,
installation: `npm install three`,
usage: `<template>
<ShapeBlur
:variation="0"
:pixel-ratio-prop="2"
:shape-size="1.2"
:roundness="0.4"
:border-size="0.05"
:circle-size="0.3"
:circle-edge="0.5"
class="shape-blur-effect"
/>
</template>
<script setup lang="ts">
import ShapeBlur from "./ShapeBlur.vue";
</script>`,
code
};