Skip to content

Commit af03620

Browse files
committed
Show first part of Storybook title as root in the UI
1 parent bda1ff1 commit af03620

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: .storybook/preview.js

+9
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,13 @@ addDecorator(withThemePlayground({
1919
provider: ThemeProvider
2020
}));
2121

22+
addParameters({
23+
options: {
24+
/**
25+
* display the top-level grouping as a "root" in the sidebar
26+
*/
27+
showRoots: true,
28+
},
29+
})
30+
2231
// addDecorator(storyFn => <ThemeProvider theme={theme}>{storyFn()}</ThemeProvider>);

0 commit comments

Comments
 (0)