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
stormy-gold•17mo ago
it doesn't work
rival-black•17mo ago
Hey @x_lucifer Which UI Library are you using?
stormy-gold•17mo ago
material ui
rival-black•17mo 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
stormy-gold•17mo 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 siderrival-black•17mo ago
The text is hidden because it is
collapsed
. You should update like this.
stormy-gold•17mo ago
still it won't work
rival-black•17mo ago
stormy-gold•17mo ago
i updated the code you given still im facing the same issue
stormy-gold•17mo ago
CodeSandbox
CodeSandbox is an online editor tailored for web applications.
rival-black•17mo ago
@x_lucifer I'm getting
Project Not Found
error 😦
Please check codesandbox projectflat-fuchsia•16mo 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