Auth Form | UI Showcase
WRNexus UI
Core component

Auth Form

Reusable auth form component.

13 props1 slots5 outputsTheme readyResponsive
Interactive playground

Configure Auth Form

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

Live preview

Auth Form example

A polished default auth form for a modern application.

Forgot password?
Component code
<AuthForm
  action="#auth-form-demo"
  title="Auth Form example"
  description="A polished default auth form for a modern application."
  submitLabel="Auth Form"
/>
Event outputInteract with the preview to inspect the typed payload.
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

Auth Form example

A polished default auth form for a modern application.

Forgot password?
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

Compact Auth Form

A compact configuration for dashboards and dense product surfaces.

Forgot password?
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

Advanced Auth Form

A richer configuration demonstrating additional content and hierarchy.

Forgot password?
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 outputs

Receive every typed component output

Use declarative output handlers in .wrn files or register a direct output handler from JavaScript. The canonical API exposes payload and does not require event.detail.

@submitFires when the component emits the submit event.
@changeFires when the component's committed value or selection changes.
@inputFires as the editable value changes.
@focusFires when the interactive control receives focus.
@blurFires when focus leaves the interactive control.
Declarative handlers.wrn
<AuthForm
  @submit='console.log(payload)'
  @change='console.log(payload)'
  @input='console.log(payload)'
  @focus='console.log(payload)'
  @blur='console.log(payload)'
/>
Direct output handlers.js
import { registerOutputHandler } from "@wrnexus/csr/outputs"

const component = document.querySelector("[data-ui-component=\"AuthForm\"], [data-component=\"AuthForm\"]")

if (component) registerOutputHandler(component, "submit", (payload) => {
  console.log("submit", payload)
})

if (component) registerOutputHandler(component, "change", (payload) => {
  console.log("change", payload)
})

if (component) registerOutputHandler(component, "input", (payload) => {
  console.log("input", payload)
})

if (component) registerOutputHandler(component, "focus", (payload) => {
  console.log("focus", payload)
})

if (component) registerOutputHandler(component, "blur", (payload) => {
  console.log("blur", payload)
})
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