Logo and Website Title
How to change the Logo and the Website Title of react refine, i am using material UI with vite
AuthPage and ThemedTitle components. title prop of the AuthPage component. By default, the title is "Refine Project". You can change it by passing a new title to the title prop. Here's an example:ThemedTitle component:"My New Title" with your desired title and "<https://refine.dev/img/logo.png"> with the URL of your logo.icon prop of the ThemedTitle component. By default, the icon is the Refine logo. You can change it by passing a new icon to the icon prop. Here's an example:MyLargeIcon and MySmallIcon with your desired icons.AuthPageAuthPageThemedTitleThemedTitleThemedTitle"My New Title""<https://refine.dev/img/logo.png"iconiconMyLargeIconMySmallIconimport { AuthPage } from "@refinedev/mui";
const MyLoginPage = () => {
return <AuthPage type="login" title={<h1>My New Title</h1>} />;
}; import { AuthPage, ThemedTitle } from "@refinedev/mui";
const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My New Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
}; import { ThemedTitleV2 } from "@refinedev/mui";
import { MyLargeIcon, MySmallIcon } from "./MyIcon";
const MyTitle = ({ collapsed }) => (
<ThemedTitleV2
collapsed={collapsed}
icon={collapsed ? <MySmallIcon /> : <MyLargeIcon />}
text="My Project"
/>
);