File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import {mergeConfig} from 'vite';
3
3
4
4
const config = {
5
5
stories : [ '../stories/components/**/*.stories.tsx' ] ,
6
+ addons : [
7
+ '@storybook/addon-essentials' ,
8
+ '@storybook/addon-actions' ,
9
+ '@storybook/addon-interactions' ,
10
+ '@storybook/addon-links' ,
11
+ ] ,
6
12
framework : {
7
13
name : '@storybook/react-vite' ,
8
14
options : { } ,
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ import './preview.scss';
6
6
const preview : Preview = {
7
7
parameters : {
8
8
layout : 'fullscreen' ,
9
+ controls : {
10
+ matchers : {
11
+ color : / ( b a c k g r o u n d | c o l o r ) $ / i,
12
+ date : / D a t e $ / ,
13
+ } ,
14
+ } ,
15
+ docs : {
16
+ toc : true , // Table of contents in docs
17
+ } ,
18
+ actions : { argTypesRegex : '^on[A-Z].*' } , // Auto detect onClick, onChange etc.
9
19
} ,
10
20
} ;
11
21
You can’t perform that action at this time.
0 commit comments