pure-react-carousel gives me an unstyled html button (ButtonBack
) and I want to style it using material-ui.
Placing buttons inside buttons is not permitted.
What works is to assign the className prop manually:
<ButtonBack className={"MuiButtonBase-root MuiButton-root MuiButton-contained"}>
<NavigateBeforeIcon />
</ButtonBack>
But it feels wrong, and also does not render as nice as an real Mui-Button.
Of course I could write my own css that mimics Muis but that feels wrong too.
Is there an easier/straight-forward way to this problem?