mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:01:06 +08:00
Addon-docs: Show code by default
This commit is contained in:
parent
f517a0a37d
commit
b4487fdc8b
@ -59,7 +59,7 @@ const getPreviewProps = (
|
||||
withSource: sourceProps,
|
||||
isExpanded: withSource
|
||||
? withSource === SourceState.OPEN
|
||||
: docsContext?.parameters?.docs?.isExpanded,
|
||||
: docsContext?.parameters?.docs?.isCodeExpanded,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -30,10 +30,10 @@ export default {
|
||||
},
|
||||
},
|
||||
parameters: {
|
||||
docs: {
|
||||
isExpanded: false,
|
||||
},
|
||||
chromatic: { disable: true },
|
||||
docs: {
|
||||
isCodeExpanded: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user