Skip to content

Auth & Error layout ​

Standalone layouts for login / register / recover / lock-screen and error pages (400, 403, 404, 500, 503) with translated texts.

AuthLayout ​

AuthLayout
vue
<div class="auth-frame"><ThlAuthLayout title="Sign in"><ThlField label="Email"><ThlInput type="email" /></ThlField><ThlField label="Password"><ThlInput type="password" /></ThlField><ThlButton variant="danger" block>Log in</ThlButton></ThlAuthLayout></div>
tsx
<AuthLayout title={t('pages.login.title')}>
  <Form …>…</Form>
</AuthLayout>
html
<thl-auth-layout [title]="'pages.login.title' | thlT">
  <form …>…</form>
</thl-auth-layout>

ErrorLayout ​

ErrorLayout
vue
<div class="auth-frame"><ThlErrorLayout :code="404" home-href="#" /></div>
tsx
<ErrorLayout code={404} homeHref="/" />
html
<thl-error-layout [code]="404" homeHref="/" />

API ​

AuthLayout

<ThlAuthLayout> · import { ThlAuthLayout } from '@thl-ui/vue'

PropTypeDefault
titlestring—
avatarstring—

Slots: logodefaultfooter

ErrorLayout

<ThlErrorLayout> · import { ThlErrorLayout } from '@thl-ui/vue'

PropTypeDefault
code*number—
titlestring—
textstring—
homeHrefstring"/"

Slots: action