We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2211e23 commit d15e388Copy full SHA for d15e388
extensions/ql-vscode/.storybook/preview.js
@@ -6,14 +6,18 @@ import '@vscode/codicons/dist/codicon.css';
6
7
import '../src/stories/vscode-theme.css';
8
9
+// https://storybook.js.org/docs/react/configure/overview#configure-story-rendering
10
export const parameters = {
11
+ // All props starting with `on` will automatically receive an action as a prop
12
actions: { argTypesRegex: "^on[A-Z].*" },
13
+ // All props matching these names will automatically get the correct control
14
controls: {
15
matchers: {
16
color: /(background|color)$/i,
17
date: /Date$/,
18
},
19
20
+ // Use a dark theme to be aligned with VSCode
21
docs: {
22
theme: themes.dark,
23
0 commit comments