You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm a bit stuck trying to change width of a menu dropdown. I need it to fill the width of its parent.
The documentation shows how to make it match the button width using className="w-[var(--button-width)]" or to hardcode it to a value using className="w-52". How do I go about making it 100% of the width that I set on the Menu component.? I've tried using width: 100% but that doesn't work. Or am I missing something. I can provide more information if unable to reproduce.
Thank you in advance and thanks for the libraries. Huge fan.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I'm a bit stuck trying to change width of a menu dropdown. I need it to fill the width of its parent.
The documentation shows how to make it match the button width using
className="w-[var(--button-width)]"
or to hardcode it to a value usingclassName="w-52"
. How do I go about making it 100% of the width that I set on theMenu
component.? I've tried usingwidth: 100%
but that doesn't work. Or am I missing something. I can provide more information if unable to reproduce.Thank you in advance and thanks for the libraries. Huge fan.
Beta Was this translation helpful? Give feedback.
All reactions