NuxtUI v3 SelectMenu creatable
NuxtUI v2 SelectMenu had
creatable
option, but I can't see it in NuxtUI v3, should I use it somehow different, or it won't be available in NuxtUI v3 ?2 Replies
Hi @dreftas. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The
creatable
option is indeed available in NuxtUI v3's SelectMenu component. Based on the provided knowledge sources, the creatable
prop is still supported and functions similarly to how it did in v2. Here's what you need to know:
1. The creatable
prop is used to enable the creation of new options when the search doesn't return any results. It works in conjunction with the searchable
prop.
2. You can use it like this:
3. The creatable
feature allows users to add new options that don't exist in the original options list Components > Creatable Part 1 (https://ui.nuxt.com/components/select-menu#creatable).
4. You can customize how the create option is displayed using the #option-create
slot Components > Slots > option-create
(https://ui.nuxt.com/components/select-menu#option-create).
5. There are additional configuration options like show-create-option-when
that allow you to control when the create option is shown Components > Creatable Part 3 (https://ui.nuxt.com/components/select-menu#creatable).
In conclusion, the creatable
option is still available and fully functional in NuxtUI v3's SelectMenu component. You can use it in the same way as you did in v2, with some additional customization options available.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@763058046431264788> Kapa.ai is still learning and improving, please let me know how I did by reacting below.