We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--input-width
--button-width
1 parent c547a72 commit 9baa91dCopy full SHA for 9baa91d
playgrounds/react/pages/combobox/combobox-countries.tsx
@@ -72,8 +72,8 @@ export default function Home() {
72
</Combobox.Button>
73
</span>
74
75
- <div className="absolute mt-1 w-full rounded-md bg-white shadow-lg">
76
- <Combobox.Options className="shadow-xs max-h-60 overflow-auto rounded-md py-1 text-base leading-6 focus:outline-none sm:text-sm sm:leading-5">
+ <div className="absolute mt-1 rounded-md bg-white shadow-lg">
+ <Combobox.Options className="shadow-xs max-h-60 w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md py-1 text-base leading-6 focus:outline-none sm:text-sm sm:leading-5">
77
{countries.map((country) => (
78
<Combobox.Option
79
key={country}
0 commit comments