Skip to content

Commit 7535126

Browse files
committedDec 11, 2024
docs: fix stories are not rendered
1 parent f0061cd commit 7535126

File tree

7 files changed

+158
-109
lines changed

7 files changed

+158
-109
lines changed
 

‎.storybook/main.ts

-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,5 @@ const config: StorybookConfig = {
3838
name: '@storybook/vue3-vite',
3939
options: {},
4040
},
41-
docs: {
42-
autodocs: 'tag'
43-
},
4441
};
4542
export default config;

‎.storybook/preview.ts ‎.storybook/preview.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
import type { Preview } from '@storybook/vue3';
22
import './preview.css'
3+
import React from 'react';
4+
5+
import { Title, Subtitle, Description, Primary, Controls, Stories } from '@storybook/blocks';
36

47
const preview: Preview = {
8+
tags: ['autodocs'],
59
parameters: {
10+
docs: {
11+
canvas: {
12+
},
13+
page: () => (
14+
<>
15+
<Title />
16+
<Subtitle />
17+
<Description />
18+
<Primary />
19+
<Controls />
20+
</>
21+
),
22+
},
623
viewport: {
724
viewports: {
825
mobile: {

0 commit comments

Comments
 (0)