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:
22
src/constants/code/TextAnimations/fallingTextCode.ts
Normal file
22
src/constants/code/TextAnimations/fallingTextCode.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import code from '@/content/TextAnimations/FallingText/FallingText.vue?raw'
|
||||
import type { CodeObject } from '@/types/code'
|
||||
|
||||
export const fallingText: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/TextAnimations/FallingText`,
|
||||
installation: `npm install matter-js @types/matter-js`,
|
||||
usage: `<template>
|
||||
<FallingText
|
||||
text="Vue Bits is awesome!"
|
||||
:highlight-words="['Vue', 'Bits']"
|
||||
trigger="hover"
|
||||
:gravity="1"
|
||||
font-size="2rem"
|
||||
:mouse-constraint-stiffness="0.2"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import FallingText from "./FallingText.vue";
|
||||
</script>`,
|
||||
code
|
||||
}
|
||||
Reference in New Issue
Block a user