AppShell header and footer props #6773
codercody
started this conversation in
Feature requests
Replies: 1 comment
-
No, this can't be achieved because of one-way data flow in react. All these values are required on AppShell component to generate CSS variables that are used by child components. You can avoid setting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if you have an
AppShell.Footer
you have to put afooter={{height: 60}}
or whatever in yourAppShell
component. Is there any way to just put thefooter={...}
into theAppShell.Footer
tag and then it can automatically be passed up toAppShell
?My use case is I have my own custom nav that uses
AppShell
, and some of my pages have footers and some of them don't. Because of this, I have to pass the footer config into my nav as a prop. When in reality it would be a much nicer design if I could just specify this in theAppShell.Footer
.Also as a side note, I wish you could nest an
AppShell.Footer
in anAppShell.Main
. Right now I have to do<MyNav><AppShell.Main>...</AppShell.Main></MyNav>
for every single component because sometimes I want a footer. But if you could nestAppShell.Footer
in anAppShell.Main
then I could just put theAppShell.Main
intoMyNav
and then just say<MyNav>...<AppShell.Footer>...</AppShell.Footer></MyNav>
for pages with a footer.Beta Was this translation helpful? Give feedback.
All reactions