N
Nuxt8mo ago
Bulbasaur

Typesafe Wrapper Components?

Hi, I’m curious how you guys create typesafe wrapper components around library components like in Nuxt UI. I saw the example DatePicker wrapped in the Nuxt UI docs, for example, doesn’t actually setup typesafe attrs for it, even though it passes the attrs through… In React this is really easy through just extending the type of the base component prope, but I’m not sure how I’d do the same in Nuxt/Vue, particularly because defineProps is stringent with the kind of types it can interpret.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server