feat: add card story

This commit is contained in:
Dominik Pschenitschni 2022-11-17 17:37:58 +01:00
parent ccc85b9a82
commit 35cfb2f3ca
Signed by untrusted user: dpschen
GPG Key ID: B257AC0149F43A77
2 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import {reactive} from 'vue'
import {createRouter, createMemoryHistory} from 'vue-router'
import BaseButton from './BaseButton.vue'
function setupApp({ app, story, variant }) {
function setupApp({ app }) {
// Router mock
app.use(createRouter({
history: createMemoryHistory(),

View 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>