mui-toolpad icon indicating copy to clipboard operation
mui-toolpad copied to clipboard

Breadcrumbs Instead of Title for Branding

Open aress31 opened this issue 1 year ago • 5 comments

Summary

I would like to use the navigation breadcrumbs in place of a title for branding purposes, as the breadcrumbs are already integrated within the PageContainer and handle all the routing. Is it possible to make them available for the title too? See:

<AppProvider
  theme={theme}
  navigation={navigation}
  branding={{ logo: <Logo/>, title: <Breadcrumb /> }}
>
  <Outlet />
</AppProvider>

The appearance I aim to achieve is:

image

Examples

No response

Motivation

No response

Search keywords: branding breadcrumbs title

aress31 avatar Oct 30 '24 21:10 aress31

A possible solution could be to separate the Breadcrumbs component from the PageContainer so that it could be used in a slot for the title in the header?

apedroferreira avatar Nov 01 '24 17:11 apedroferreira

@apedroferreira, would it also be possible to make the header bar in PageContainer optional? This way, we could achieve a full viewport layout while maintaining a consistent look by wrapping everything within PageContainer or show the page header based on a condition, e.g., activeRoute === whatever.

aress31 avatar Nov 01 '24 17:11 aress31

@apedroferreira, would it also be possible to make the header bar in PageContainer optional? This way, we could achieve a full viewport layout while maintaining a consistent look by wrapping everything within PageContainer or show the page header based on a condition, e.g., activeRoute === whatever.

I see, I guess we could create a slot for the PageContainer header too.

apedroferreira avatar Nov 01 '24 18:11 apedroferreira

would it also be possible to make the header bar in PageContainer optional?

Isn't a PageContainer without header just a Container?

Janpot avatar Nov 01 '24 20:11 Janpot

@Janpot, it might be, but as mentioned, one could want to apply some conditional logic based on route or anything else on hiding/showing the PageContainer bar.

aress31 avatar Nov 01 '24 21:11 aress31