patternfly icon indicating copy to clipboard operation
patternfly copied to clipboard

Page sidebar - better support for custom content

Open mcoker opened this issue 3 years ago • 0 comments

From a request on slack:

Hello! I have an app following the typical Patternfly layout, with a PageSidebar theme="dark" nav={Navigation} where Navigation contains the usual Nav and NavList. What I'd like to do is put a copyright notice down at the bottom of the sidebar. The problem is, if I put children inside the PageSidebar they are ignored, and if I put them in Navigation they are already inside a div (or some other element) that only has the height of the menu. Does anyone know a good way to do this?

I created this sandbox https://codesandbox.io/s/festive-haibt-81j4cn?file=/index.js

The page sidebar isn't currently setup to accept custom content without a fair amount of modifications. Should we support more types of custom content/components in the sidebar?

mcoker avatar Jul 18 '22 16:07 mcoker