#How to hide that default gray line under the tabs

11 messages · Page 1 of 1 (latest)

buoyant dagger
#

follow the arrows

#

How to hide that default gray line under the tabs

paper ruin
#

This is one way, but I'm not sure it's the best. <Tabs
variant="pills"
color="transparent"
defaultValue="gallery"
styles={{
tabSection: {
color: "black",
},
tabLabel: {
color: "black",
},
}}

buoyant dagger
potent musk
#

In this specific case I'm passing a class to the list:

<Tabs classNames={{ list: classes.tabsWithoutLine }}>

Inside the class I'm specifically targeting the :before pseudo-element

.tabsWithoutLine {
  &:before {
    border: none;
  }
}
buoyant dagger
#

this works like charm

#

thank you so much dude