How to make menu items full width of parent. #3380
Unanswered
tomgwasira
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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