mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Create <Counter /> component
This commit is contained in:
@@ -80,7 +80,8 @@ export const CATEGORIES = [
|
||||
'Flowing Menu',
|
||||
'Elastic Slider',
|
||||
'Stack',
|
||||
'Chroma Grid'
|
||||
'Chroma Grid',
|
||||
'Counter'
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
17
src/constants/code/Components/counterCode.ts
Normal file
17
src/constants/code/Components/counterCode.ts
Normal 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"
|
||||
/>`,
|
||||
})
|
||||
Reference in New Issue
Block a user