Skip to content

Commit 5a22631

Browse files
committed
update CodeEditor storybook examples
1 parent dafb4bd commit 5a22631

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/extensions/codemirror/CodeMirror.stories.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,22 @@ const TemplateFull: StoryFn<typeof CodeEditor> = (args) => <CodeEditor {...args}
2424

2525
export const BasicExample = TemplateFull.bind({});
2626
BasicExample.args = {
27-
name: "codeinput",
27+
name: "jsinput",
28+
mode: "json",
29+
defaultValue: '{ json: "true" }',
30+
};
31+
32+
export const MarkdownWithToolbar = TemplateFull.bind({});
33+
MarkdownWithToolbar.args = {
34+
name: "mdinput",
2835
mode: "markdown",
2936
defaultValue: "**test me**",
3037
useToolbar: true,
31-
disabled: false,
32-
readOnly: true,
3338
};
3439

3540
export const LinterExample = TemplateFull.bind({});
3641
LinterExample.args = {
37-
name: "codeinput",
42+
name: "lintinput",
3843
defaultValue: "**test me**",
3944
mode: "javascript",
4045
useLinting: true,

0 commit comments

Comments
 (0)