I have a problem in the tabs component of nextui. I want to change the radius as in the picture but the element is not in the code structure. How to solve it?
]
]

I tried with className={{ wrapper: ‘rounded-lg’}} in child element but it still doesn't work.
Problem :
How to change border radius of inner & outer part of Tabs component in NextUI
Cause :
There is no property/key
wrapperforclassNamesinTabscomponent.
Solution :
There are two ways to change radius :
classNamesradius prop1. Using classNames prop for custom border-radius :
base| tabList| tab| tabContent| cursor | panel
Tabs component has prop classNames pass border-radius to tabList & cursor keys in it to get desired result.
Code:
<Tabs
    classNames={{
        tabList: "rounded-xl bg-secondary", // Changes Border radius of outer part
        cursor: "rounded-sm",  //  Changes Border radius of inner part
    }}
>
Explanation :
2. Using radius prop :
radius prop valid values :
none | sm | md | lg | full
Code :
<Tabs radius={'lg'}>
Please Read :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With