如何在 headless-ui 组合框/自动完成中启用多个选项选择?
我正在使用 headless-UI 组合框/自动完成。我想使用此组件启用多个选项选择。谁能告诉我,我们怎样才能实现这一目标?
I am using headless-UI combobox/autocomplete.I would like to enable multiple options selections with this component. Can anyone tell me, how can we achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
multiple
支撑词。将传递一个数组而不是单个选项:链接:https://headlessui .com/react/combobox#selecting-multiple-values
Use the
multiple
prop word. An array will be passed to value instead of a single option:Link: https://headlessui.com/react/combobox#selecting-multiple-values