Skip to main content

AuthLayout

Centred layout for screens shown before sign-in: login, password reset, MFA.

The built-in AuthPage and ResetPasswordPage use it. Reach for it when you replace one of those pages but want the same frame.

Example​

import {AuthLayout} from 'habarico';

<AuthLayout
logo={{Component: Logo}}
language={{availableLanguages}}
appearance
help={{label: 'Need help?', Component: SupportInfo}}
>
<MyLoginForm />
</AuthLayout>

Props​

Like the other app shells, every feature is a slot: passing it enables the feature and configures it. Slots whose configuration is all-optional also accept true.

NameTypeDescription
children (required)ReactNodeThe form
logoLogoSlot{Component} — logo in the header
languageLanguageSlot{availableLanguages} — the language popover
appearanceAppearanceSlottrue or {labels?, tooltip?, header?} — the light/dark toggle
helpHelpSlottrue or {label?, Component?} — the button and dialog offering help
sxSxProps<Theme>MUI style override

Both toggles work before sign-in, so a user can pick a language and a colour mode on the login screen. They write to the SettingsProvider context — mount one above the layout (SchemaAdmin already does).

See also​