can't modify the title in sidebar mui
in version 4 i can't change the title i already did the customization in title component it generated by swizzle still it does not works..
15 Replies
Hi @x_lucifer. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not mention version 4 or the swizzle feature. However, you can refer to the refine documentation (https://refine.dev/docs) for more information on customizing the title and other components.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------Overview | refine
What is refine?
<@568420485356978176> kapa.ai is still learning and improving, please let us how it did by reacting below
compatible-crimsonOP•2y ago
it doesn't work
optimistic-gold•2y ago
Hey @x_lucifer Which UI Library are you using?
compatible-crimsonOP•2y ago
material ui
optimistic-gold•2y ago
I suggest you review this doc. If the problem still persists you should give us a codesandbox that we can reproduce.
https://refine.dev/docs/api-reference/mui/components/mui-themed-layout/#customizing-with-swizzle
compatible-crimsonOP•2y ago
<ThemedLayoutV2
Header={() => <Header isSticky={true} />}
Sider={() => <ThemedSiderV2 />}
Title={({ collapsed }) => (
<ThemedTitleV2
collapsed={true}
text="My Project"
/>
)}
>
<Component {...pageProps} />
</ThemedLayoutV2>
this is the format i give it through but that text not affect in the mui sideroptimistic-gold•2y ago
The text is hidden because it is
collapsed
. You should update like this.
compatible-crimsonOP•2y ago
still it won't work
optimistic-gold•2y ago
compatible-crimsonOP•2y ago
i updated the code you given still im facing the same issue
compatible-crimsonOP•2y ago
CodeSandbox
CodeSandbox is an online editor tailored for web applications.
optimistic-gold•2y ago
@x_lucifer I'm getting
Project Not Found
error 😦
Please check codesandbox projectfair-rose•2y ago
Hi ! i cant get the title in Antd
however, when I go set the title property it works for some reason although it has been deperacted