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
I am trying to add new variant for maxWidth to the Navbar component. My goal is to not set max-width to the wrapper slot and add the container class instead.
But when I use the CustomNavbar the container class is successfully added to the wrapper slot, but the max-width from the original default variant (lg) is there as well.
Even if I specifically set the maxWidth="container" prop it doesn't help.
NextUI Version
2.3.6
Describe the bug
I am trying to add new variant for
maxWidth
to theNavbar
component. My goal is to not setmax-width
to the wrapper slot and add thecontainer
class instead.So I extended variants like this:
But when I use the
CustomNavbar
thecontainer
class is successfully added to the wrapper slot, but themax-width
from the original default variant (lg
) is there as well.Even if I specifically set the
maxWidth="container"
prop it doesn't help.Your Example Website or App
https://codesandbox.io/p/devbox/cocky-microservice-dszkmp?file=%2FApp.jsx%3A21%2C20
Steps to Reproduce the Bug or Issue
See the bug description and codesandbox.
Expected behavior
The original default variant is not applied of the different one is set.
Screenshots or Videos
No response
Operating System Version
Windows 10
Browser
Chrome
The text was updated successfully, but these errors were encountered: