#AppShell and Mantine UI with React Route questions

3 messages · Page 1 of 1 (latest)

cyan thistle
#

I am new to UI dev and React and Mantine. So please bear with my simple questions. I like AppShell since I can create designated fixed regions in my app's layout. My app will have a few pages and each will have different layout. The pages links will be in a nav section of some sort and I want to use react routing for it.

Questions:

  1. Can I use different AppShell layout for all my pages. Will that be a good pattern? I was assuming AppShell should be used if the app regardless of which page it is going to maintains the same layout.
  2. Can I nest AppShell components?
  3. I see some nice Nav and Header examples in Mantine UI collections. But nothing with using react router. Is there any example of Nav with React Routing?

Thank you.

real warren
cyan thistle
#

Thank you @real warren . If I have say 5 or 6 different components each with different layout that takes up the entire screen (minus the stationary navbar/page-menu) is it a good idea to use AppShell to create layout for those 6 app components. Or may be I am better of using other layout components such as Grid, Flex, Box etc.? That is not use AppShell at all.