`class` property type
when moving class from
attrs
to props
, to bind them to different elements, how should it be typed?2 Replies
Hi @Alejandro Mery. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To answer your question about the
class
property type when moving it from attrs
to props
in Nuxt, I'll need to refer to the Nuxt documentation. However, the provided knowledge sources don't contain specific information about this particular scenario.
The closest relevant information I can find is from the Components > Props documentation, which shows examples of prop types for various components. However, it doesn't specifically address the class
prop type when moved from attrs
to props
.
Without more specific information from the Nuxt documentation, I cannot provide a definitive answer to your question. It's possible that the type for a class
prop could be a string, an object, or an array, depending on how you intend to use it, but I don't have concrete evidence from the knowledge sources to support this.
If you need a precise answer, I recommend checking the official Nuxt documentation or asking in the Nuxt community forums for the most up-to-date and accurate information on this specific use case.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@693869117270392873> Kapa.ai is still learning and improving, please let me know how I did by reacting below.