Create <Counter /> component

This commit is contained in:
Alfarish Fizikri
2025-07-23 09:16:28 +07:00
parent 53c5b5e208
commit 82f1a6fcbd
5 changed files with 434 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ export const CATEGORIES = [
'Flowing Menu',
'Elastic Slider',
'Stack',
'Chroma Grid'
'Chroma Grid',
'Counter'
]
},
{

View File

@@ -69,6 +69,7 @@ const components = {
'tilted-card': () => import('../demo/Components/TiltedCardDemo.vue'),
'stack': () => import('../demo/Components/StackDemo.vue'),
'chroma-grid': () => import('../demo/Components/ChromaGridDemo.vue'),
'counter': () => import('../demo/Components/CounterDemo.vue'),
};
const backgrounds = {

View File

@@ -0,0 +1,17 @@
import code from '@content/Components/Counter/Counter.vue?raw'
import { createCodeObject } from '../../../types/code'
export const counter = createCodeObject(code, 'Components/Counter', {
installation: `npm i motion-v`,
usage: `import Counter from './Counter.vue'
<Counter
:value="1"
:places="[100, 10, 1]"
:fontSize="80"
:padding="5"
:gap="10"
textColor="white"
:fontWeight="900"
/>`,
})