I am new to react and react toolbox. React toolbox uses scss. I don't know scss yet so facing problems with customization of its components.
This is what I have:
<AppBar fixed flat title="Webocity" className="appBar">
<Navigation type='horizontal' className="navbar" routes={linkroutes}>
</Navigation>
</AppBar>
An appbar component with navigation component in it.
I tried applying css class to appbar component and it worked.
However, className on Navigation component isn't working and would like to know why. Why did it work for AppBar
and not Navigation
?Also, for appBar css ,background proerty was overrided but not height property. Why is that?
Also, how do I pass themes to these components? I understand that would need to be written in SCSS files. But could I get may be a very simple example for it?
The documentation shows:
import theme from './PurpleAppBar.scss';
const PurpleAppBar = (props) => (
<AppBar {...props} theme={theme} />
);
export default PurpleAppBar;
But what is PurpleAppBar.scss and what should it look like? I believe it's a custom SCSS file?
Also, I am working on a web app so material-ui doesn't sound a good option to me.Do we have anything better to enhance UI in react web apps?