Removing menu sidebar(left) from showcase

UI Components for React
Post Reply
andyp_888
Posts: 4
Joined: 30 Jul 2015, 10:14

02 Mar 2021, 02:06

Hi,

I am starting with a clone of the showcase repo, but I don't want a left hand menu, just a top bar.

Can you give me a pointer on how to hide the left hand sidebar menu please?

Many Thanks,
AP

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

06 May 2021, 22:50

Hi,

Sorry for the delayed response! You can remove AppMenu component from App.js. Then,

Code: Select all

body .layout-content {
   margin-left: 0;
}

body .layout-wrapper .layout-topbar .menu-button {
   display: none !important; /* Or you can remove menu-button element from Topbar */
}
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests