// Generated by scripts/generate-showcase.mjs. Do not edit directly. page AuthFormDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_mode = ctx.url.searchParams.get("pg_mode") ?? "sign-in" state playground_action = ctx.url.searchParams.get("pg_action") ?? "#auth-form-demo" state playground_method = ctx.url.searchParams.get("pg_method") ?? "post" state playground_title = ctx.url.searchParams.get("pg_title") ?? "Auth Form example" state playground_description = ctx.url.searchParams.get("pg_description") ?? "A polished default auth form for a modern application." state playground_returnTo = ctx.url.searchParams.get("pg_returnTo") ?? "" state playground_schema = ctx.url.searchParams.get("pg_schema") ?? "" state playground_showRemember = ctx.url.searchParams.get("pg_showRemember") ?? "true" state playground_showName = ctx.url.searchParams.get("pg_showName") ?? "true" state playground_submitLabel = ctx.url.searchParams.get("pg_submitLabel") ?? "Auth Form" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Auth Form" description = "Reusable authentication form for sign-in, registration, recovery, reset, and MFA." } view {
Forms component

Auth Form

Reusable authentication form for sign-in, registration, recovery, reset, and MFA.

13 props1 slots5 eventsTheme readyResponsive
Interactive playground

Configure Auth Form

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<AuthForm
  action="#auth-form-demo"
  title="Auth Form example"
  description="A polished default auth form for a modern application."
  submitLabel="Auth Form"
/>
Component props13 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Component usage.wrn
<AuthForm
  action="#auth-form-demo"
  title="Auth Form example"
  description="A polished default auth form for a modern application."
  submitLabel="Auth Form"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
<AuthForm
  size="sm"
  action="#auth-form-demo"
  title="Compact Auth Form"
  description="A compact configuration for dashboards and dense product surfaces."
  submitLabel="Compact example"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
<AuthForm
  size="lg"
  action="#auth-form-demo"
  title="Advanced Auth Form"
  description="A richer configuration demonstrating additional content and hierarchy."
  submitLabel="Advanced example"
/>
Component events

Events

Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.

@submitFires when the component submits its value.
@changeFires when the component value or selection changes.
@inputFires immediately as the component value changes.
@focusFires when the component receives focus.
@blurFires when focus leaves the component.
Event listener.js
const component = document.querySelector('[data-wrn-events]')

component.addEventListener('submit', (event) => {
  console.log(event.detail)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
modestring"sign-in"No
actionstring"/api/auth/login"No
methodstring"post"No
titlestring"Sign in"No
descriptionstring""No
returnTostring""No
schemastring""No
showRememberbooleantrueNo
showNamebooleantrueNo
submitLabelstring"Continue"No
classstring""No
} }