mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Migrate <CircularGallery />
This commit is contained in:
27
src/constants/code/Components/circularGalleryCode.ts
Normal file
27
src/constants/code/Components/circularGalleryCode.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import code from '@content/Components/CircularGallery/CircularGallery.vue?raw'
|
||||
import type { CodeObject } from '../../../types/code'
|
||||
|
||||
export const circularGallery: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/Components/CircularGallery`,
|
||||
installation: `npm install ogl`,
|
||||
usage: `<template>
|
||||
<CircularGallery
|
||||
:items="[
|
||||
{ image: 'https://picsum.photos/800/600?random=1', text: 'Beautiful Nature' },
|
||||
{ image: 'https://picsum.photos/800/600?random=2', text: 'City Life' },
|
||||
{ image: 'https://picsum.photos/800/600?random=3', text: 'Ocean Views' }
|
||||
]"
|
||||
:bend="3"
|
||||
text-color="#ffffff"
|
||||
:border-radius="0.05"
|
||||
font="bold 30px Arial"
|
||||
:scroll-speed="2"
|
||||
:scroll-ease="0.05"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import CircularGallery from "./CircularGallery.vue";
|
||||
</script>`,
|
||||
code
|
||||
}
|
||||
Reference in New Issue
Block a user