feat: add card story
This commit is contained in:
parent
ccc85b9a82
commit
35cfb2f3ca
@ -4,7 +4,7 @@ import {reactive} from 'vue'
|
|||||||
import {createRouter, createMemoryHistory} from 'vue-router'
|
import {createRouter, createMemoryHistory} from 'vue-router'
|
||||||
import BaseButton from './BaseButton.vue'
|
import BaseButton from './BaseButton.vue'
|
||||||
|
|
||||||
function setupApp({ app, story, variant }) {
|
function setupApp({ app }) {
|
||||||
// Router mock
|
// Router mock
|
||||||
app.use(createRouter({
|
app.use(createRouter({
|
||||||
history: createMemoryHistory(),
|
history: createMemoryHistory(),
|
||||||
|
11
src/components/misc/Card.story.vue
Normal file
11
src/components/misc/Card.story.vue
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
import Card from './card.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Story :layout="{ type: 'grid', width: '200px' }">
|
||||||
|
<Card>
|
||||||
|
Card content
|
||||||
|
</Card>
|
||||||
|
</Story>
|
||||||
|
</template>
|
Loading…
x
Reference in New Issue
Block a user