generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow comments before main <Stories> tag
- Loading branch information
1 parent
f522d16
commit cfc2358
Showing
5 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
examples/vite/src/writing-stories/1.default-export.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Button from '../components/Button.vue' | ||
|
||
import type { Meta } from '@storybook/vue3' | ||
|
||
export default { | ||
/* 👇 The title prop is optional. | ||
* See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading | ||
* to learn how to generate automatic titles | ||
*/ | ||
title: 'Button', | ||
component: Button, | ||
} as Meta<typeof Button> |
11 changes: 11 additions & 0 deletions
11
examples/vite/src/writing-stories/1.default-export.stories.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
import Button from '../components/Button.vue' | ||
</script> | ||
<template> | ||
<!-- | ||
👇 The title prop is optional. | ||
See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading | ||
to learn how to generate automatic titles | ||
--> | ||
<Stories title="Button"> </Stories> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Contains the stories of https://storybook.js.org/docs/vue/writing-stories/introduction in both the classical `vue-ts` and the new `vue-native` format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters