diff --git a/packages/web-util/src/stories.tsx b/packages/web-util/src/stories.tsx index a8a9fdf77..3f90be13a 100644 --- a/packages/web-util/src/stories.tsx +++ b/packages/web-util/src/stories.tsx @@ -323,6 +323,7 @@ function parseExampleImport( render: { component: exampleValue as FunctionComponent, props: {}, + contextProps: {}, }, }; } @@ -367,19 +368,22 @@ export interface Group { list: ComponentItem[]; } -export interface ComponentItem { +export interface ComponentItem { name: string; - examples: ExampleItem[]; + examples: ExampleItem[]; } -export interface ExampleItem { +export type ExampleItemSetup = { + component: FunctionalComponent; + props: Props; + contextProps: object; +}; + +export interface ExampleItem { group: string; component: string; name: string; - render: { - component: FunctionalComponent; - props: object; - }; + render: ExampleItemSetup; } type ComponentOrFolder = MaybeComponent | MaybeFolder;