mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Add Star Border Animation component and demo with adjustable params
Signed-off-by: sayedTahsin <mail.tahsin99@gmail.com>
This commit is contained in:
21
src/constants/code/Animations/starBorderCode.ts
Normal file
21
src/constants/code/Animations/starBorderCode.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import code from '@content/Animations/StarBorder/StarBorder.vue?raw';
|
||||
import type { CodeObject } from '../../../types/code';
|
||||
|
||||
export const starBorder: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/Animations/StarBorder`,
|
||||
usage: `<template>
|
||||
<StarBorder
|
||||
as="button"
|
||||
:color="color"
|
||||
:speed="speedProp"
|
||||
:thickness="thickness"
|
||||
>
|
||||
Star Border
|
||||
</StarBorder>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import StarBorder from './StarBorder.vue'
|
||||
</script>`,
|
||||
code
|
||||
};
|
||||
Reference in New Issue
Block a user