#Add Text input to ui3 contextmenu
3 messages · Page 1 of 1 (latest)
Hi @rocky moat. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the provided knowledge sources, there is not enough specific information to directly answer whether it's possible to add a Text Input into the UI3 ContextMenu component.
The ContextMenu documentation (https://ui.nuxt.com/components/context-menu) shows basic usage of the component, but does not mention adding a Text Input or other form elements inside it. The example provided only shows a simple menu with text content.
However, the ContextMenu component seems to be flexible in terms of content. The documentation states:
<UContextMenu v-model="isOpen" :virtual-element="virtualElement">
<div class="p-4">
Menu
</div>
</UContextMenu>
This suggests that you can potentially add custom content inside the ContextMenu, which could theoretically include a Text Input.
To potentially achieve this, you might try placing a UInput component (https://ui.nuxt.com/components/input) inside the ContextMenu. However, without specific documentation or examples, I cannot guarantee that this would work as expected or be a recommended approach.
For a definitive answer, you may need to:
- Experiment with the component yourself to see if it's possible.
- Check the latest Nuxt UI documentation for any updates.
- Consult the Nuxt community forums or GitHub issues for similar use cases.