patternfly
patternfly copied to clipboard
Page sidebar - better support for custom content
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?