Is there a way to set the default polymorphic component without creating a new one? #5386
Answered
by
rtivital
Californian
asked this question in
Q&A
-
I'm trying to use |
Beta Was this translation helpful? Give feedback.
Answered by
rtivital
Dec 8, 2023
Replies: 1 comment
-
Type for |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Californian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type for
component
prop as well as other associated props that are inferred from it is handled with a generic interface, you cannot have component in default props and preserve type safety.