Skip to content

Commit 8938932

Browse files
committed
docs(Storybook): show union values from types
1 parent 5362f7d commit 8938932

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const config: StorybookConfig = {
7878
reactDocgenTypescriptOptions: {
7979
tsconfigPath: fileURLToPath(new URL('../tsconfig.json', import.meta.url)),
8080
shouldExtractLiteralValuesFromEnum: true,
81+
shouldExtractValuesFromUnion: true,
8182
shouldRemoveUndefinedFromOptional: true,
8283
},
8384
},

.storybook/preview.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ const preview: Preview = {
2626
ref: {
2727
table: { disable: true },
2828
},
29+
dataset: {
30+
control: { disable: true },
31+
},
32+
ChartPlaceholder: {
33+
control: { disable: true },
34+
},
2935
},
3036
decorators: [
3137
(Story, { globals, viewMode }) => {

0 commit comments

Comments
 (0)