mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Added Prism Usage
This commit is contained in:
@@ -3,7 +3,22 @@ import { createCodeObject } from '../../../types/code';
|
|||||||
|
|
||||||
export const prism = createCodeObject(code, 'Backgrounds/Prism', {
|
export const prism = createCodeObject(code, 'Backgrounds/Prism', {
|
||||||
installation: `npm install ogl`,
|
installation: `npm install ogl`,
|
||||||
usage: `
|
usage: `<template>
|
||||||
|
<div style="width: 100%; height: 600px; position: relative;">
|
||||||
|
<Prism
|
||||||
|
animation-type="rotate"
|
||||||
|
:time-scale="0.5"
|
||||||
|
:height="3.5"
|
||||||
|
:base-width="5.5"
|
||||||
|
:scale="3.6"
|
||||||
|
:hue-shift="0"
|
||||||
|
:color-frequency="1"
|
||||||
|
:noise="0.5"
|
||||||
|
:glow="1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Prism from "./Prism.vue";
|
import Prism from "./Prism.vue";
|
||||||
</script>`
|
</script>`
|
||||||
|
|||||||
Reference in New Issue
Block a user