StoryObj
possibly not recognizing Radix Primitive component type
#28477
Unanswered
TylerAPfledderer
asked this question in
Help
Replies: 1 comment
-
Just in case, one of the solutions that worked for me was to give the component in StoryObj instead of giving typeof meta:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hello!
What's the recommended approach to working with Radix primitives in Storybook with Typescript?
Using
satisfies Meta<typeof Accordion.Root>
andStoryObj<typeof meta>
is providing this initial type error for a story:args
never
?Seems like
StoryObj
does not recognize the complex type fromAccordion.Root
as a component type.Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions