AuthLayout
Authentication surface with a centered card or a split form/aside layout, plus brand, title, footer and size presets.
npx @slipstream-ui/cli@latest add auth-layoutSign in
Sign in
Welcome back to Example App.
New here? Create an account
Split with an aside
Sign in
Welcome back to Example App.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Card heading (h1). |
| description | string | — | Supporting line under the heading. |
| subtitle | string | — | Alias for description (migration-friendly). |
| brand | ReactNode | — | Mark rendered above the card. |
| logo | ReactNode | — | Alias for brand (migration-friendly). |
| footer | ReactNode | — | Links/legal copy under the card. |
| size | 'sm' | 'md' | 'lg' | 'md' | Card width preset. |
| variant | 'centered' | 'split' | 'centered' | Split renders the form beside an aside on desktop. |
| aside | ReactNode | — | Optional panel for the split variant; omitting it falls back to centered. |
| maxWidth | number | string | — | Overrides the card width: pixels (420) or any CSS width ("26rem"). |
Accessibility
- Owns the page h1; keep the form free of additional h1s.
- Centered layout keeps the form reachable on small screens.
- The split variant keeps DOM order form then aside, so keyboard order stays correct.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.