konkret12345
konkret12345

Reputation: 97

React-Sidenav main content isn't styled

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

Answers (1)

chris
chris

Reputation: 5006

As per the docs, you have to import the css like so:

import "@trendmicro/react-sidenav/dist/react-sidenav.css";

Upvotes: 1

Related Questions