Reputation: 97
i'm using this. https://github.com/trendmicro-frontend/react-sidenav
Sidenav works well, but I do not have time to implement main content style. Do you know why main content is not included in the library? The demo works correctly. It will be time-consuming to write styles and logics so that the width of main content is good depending on collapse.
<SideNav>
...
</SideNav>
<main>
<Route path="/" exact component={props => <ASD/>} />
<Route path="/asd" component={props => <ASD/>} />
<Route path="/asd" component={props => <ASD/>} />
</main>
Upvotes: 0
Views: 726
Reputation: 5006
As per the docs, you have to import the css like so:
import "@trendmicro/react-sidenav/dist/react-sidenav.css";
Upvotes: 1