AuthScreen
Auth

AuthScreen

The page a LoginPanel sits on: the stage, the product lockup above the card, the theme toggle in the corner, and the legal line below.

Component behavior

AuthScreen provides the page background, product branding, theme toggle, and footer around a LoginPanel.

AuthScreenProps extends HTMLAttributes<HTMLElement> props
PropTypeDefaultDescription
asElementType"main"Root element or component. Use div when this is not the main page region.
brandReactNode—Brand content above the card.
actionReactNode—Corner slot, pinned top-right. A ThemeToggle, a locale picker.
footerReactNode—Footer content below the card.
background"glow" | "grid" | "plain" | "none""glow"The stage. glow is the brand wash; grid adds a ruled lattice that fades out behind the card.
fullHeightbooleantrueFills the viewport when enabled; otherwise sizes to content.
childrenReactNode—The card. A LoginPanel, usually.

Examples

A sign-in page

AuthScreen

Backgrounds

background defaults to "glow". "grid" adds a fading grid. "plain" omits background effects. "none" omits the stage background.

AuthScreen backgrounds

AuthBrandMark

AuthBrandMark renders a bordered square for logo content. Pass the component to the brand prop of LoginPanel.

AuthBrandMarkProps extends HTMLAttributes<HTMLSpanElement> props
PropTypeDefaultDescription
sizenumber54Size of the tile in px.
childrenReactNode—Logo content, such as an image or SVG.
AuthBrandMark
ImportTSX
import { AuthScreen, AuthBrandMark, LoginPanel } from "@solarius/onset";

<AuthScreen background="grid" action={<ThemeToggle />} footer="© 2026 Solarius">
  <LoginPanel
    brand={
      <AuthBrandMark>
        <Logo size={40} />
      </AuthBrandMark>
    }
    title="Welcome back"
  >
    …
  </LoginPanel>
</AuthScreen>;