How can I remove the spinner buttons (up/down arrows) from a Material-UI TextField when the type="number" is used?
When I try to this css but this is not working then I can find new props and find mui classname then solve this issues
<Tabs
value={0}
TabIndicatorProps={{
style: {
backgroundColor: 'red', // Change this to your desired color
},
}}
>
<Tab label="Tab 1" />
<Tab label="Tab 2" />
<Tab label="Tab 3" />
</Tabs>
2
Answers
There are 2 props you can use as mentioned in the MUI docs
textColor for text color and indicatorColor for the underlines
as in your case you need the second onehttps://mui.com/material-ui/react-tabs/#colored-tab
But note that this will only work for MUI’s predefined colors like primary/secondary. If you want to give a custom color use the below code
In Material-UI, the tab indicator line can be customized using the TabIndicatorProps within the Tabs component. You can control its color by passing custom styles to the sx prop or using style for inline styling.
TabIndicatorProps: This prop allows you to customize the tab indicator (the line below the selected tab).