Comments (1)
Hey!
In this scenario I would not use any other interactive elements inside of the <Combobox.Option>
component. Think of the Combobox
as a native <select>
with search capabilities and that's stylable. With this in mind, you are sort of creating this:
<select>
<option>
<label>
<input type="checkbox" />
...
</label>
</option>
</select>
- If you want to style the item to indicate if you have a checked option then you can look at some of the examples we have here: https://headlessui.com/react/combobox
- If you want to make the
Combobox
form-compatible then you can use thename
prop: https://headlessui.com/react/combobox#using-with-html-forms
So while this doesn't solve your issue itself, I don't think this is something we are going to support for now.
Hope this helps!
from headlessui.
Related Issues (20)
- [DOCS]: I am use @headlessui/vue for Vue2 HOT 1
- ESLint - Vue - Linting errors with HeadlessUI using "reserved" names HOT 2
- Add RTL support to Tabs HOT 2
- ComboBox single-select: after selection is done, input field gets focus
- Focus is lost when hitting tag when using transition HOT 1
- Can not use the combobox scrollbar in a bootstrap modal HOT 9
- Mobile - Dropdowns automatically close when scrolling outside of the dropdown element. HOT 6
- Combobox: input defaultValue change when displayValue change HOT 1
- Nesting of dialogs is sometimes broken
- focus-visible on tab is triggered on first click after page load HOT 1
- Select dropdown option selection gets disabled when using with HeadlessUI Popover
- [DOCS]: Website isn't active HOT 2
- Dialog's initialFocus on input does not trigger iOS shifting view up HOT 1
- Can not use the combobox scrollbar inside the Tab Component
- Can not use the combobox scrollbar inside the Tab or Radio Group components HOT 2
- @headlessui/tailwindcss 'ui-open' utility class inheritance inside Dialog HOT 2
- `provideUseId` not available in insiders version
- Add programmatic control of Headless UI components open state
- Insiders version of Tabs is breaking page overflow on mobile HOT 1
- [DOCS]: Documentation site dosen't loads up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headlessui.