diff --git a/src/story.ts b/src/story.ts index f937a4a..a3e4c5d 100644 --- a/src/story.ts +++ b/src/story.ts @@ -343,6 +343,13 @@ export type StoryAnnotations< */ storyName?: StoryName; + /** + * The primary component for your story. + * + * Used by addons for automatic prop table generation and display of other component metadata. + */ + component?: (TRenderer & { T: Args extends TArgs ? any : TArgs })['component']; + /** * Function that is executed after the story is rendered. */