Krizaka
Documentation

Auth layout

An entry screen — sign in, sign up, verify, onboarding: the product's brand panel (its gradient, a promise, a quote) beside a calm form; one column on a phone with the mark above the form.

WebBetaLayouts

Web only — React, from @krizaka/ui/auth-layout. Beta: its API may still change in a minor version.

When to use

  • Sign-in, sign-up, password reset, email verification.
  • The first steps of an onboarding.

When not to use

  • For settings once signed in.Use instead: Settings layout
  • For a dialog that asks to sign in over a page.Use instead: Dialog

Installation

Install

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Import

import { AuthLayout } from "@krizaka/ui/auth-layout";

Examples

Orochia · sign in

The brand panel with the promise and a creator's words, email and password, a passkey.

Orochia

Welcome back

Sign in to your studio.

Forgot it?

No account yet? Create one

By signing in you accept the terms and the privacy policy.

Onboarding

The steps in words above the current step's form.

Orochia

Your payout account

Where your earnings go every Monday.

  1. Profile — Done

  2. Payouts — Current step

  3. Identity — Upcoming

Checked before your first payout.

Verify an email

The smallest entry screen: a code.

Krizaka

Check your email

We sent a 6-digit code to eric@tremblay.ca.

Props

An entry screen: the product's brand panel beside the form (one column on a phone).

PropTypeDefaultDescription
brandrequiredReactNode—The product's mark and name (<ProductLogo id="orochia" /> Orochia): in the brand panel, and above the form on a phone.
titlerequiredReactNode—The form's title (Welcome back): the h1.
asideReactNode—The brand panel's sentence or quote under the promise (a MascotQuote, a creator's words).
asideFooterReactNode—The brand panel's foot (© Krizaka · Montréal).
descriptionReactNode—One sentence under the title.
footerReactNode—Under the form: the other way (No account yet? Create one).
legalReactNode—The fine print at the very bottom (terms, privacy).
promiseReactNode—The brand panel's promise, large (desktop).

Accessibility

  • The form's title is the page's h1, inside main.
  • The brand panel is decorative on a phone (hidden); its text is read on a desktop.

Best practices

  • One primary action (cut, shimmer) at full width; the alternatives as secondary buttons under it.
  • The promise in five words, a real person's sentence under it.
  • Autocomplete on every field (email, current-password, one-time-code).

Generated from the code of @krizaka/ui 2.10.0: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page