Components
Auth Layout
A split authentication layout with brand panel and footer.
Installation
$ npx veil-ui@latest add auth-layoutUsage
import { AuthLayout } from "@/components/ui/auth-layout";
import { LoginForm } from "@/components/ui/login-form";
<AuthLayout
title="Veil UI"
description="Accessible components for product teams."
highlights={["Copy the source", "Accessible defaults"]}
footer="Protected by enterprise-grade security."
>
<LoginForm />
</AuthLayout>;Examples
Basic
Protected by enterprise-grade security.
Minimal
API reference
The package exports auth-layout along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.
Accessibility
- Forms use native inputs with associated labels and descriptive error text.
- Submission states are announced through disabled controls and live error messaging.
- Social providers are buttons with discernible provider names.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add auth-layout --framework vue or switch the framework in components.json.
<template>
<div data-slot="auth-layout" class="grid min-h-[560px] overflow-hidden rounded-xl border bg-background md:grid-cols-2 w-full max-w-4xl"><aside class="relative hidden flex-col justify-between overflow-hidden bg-gradient-to-br from-primary/20 via-muted to-background p-8 md:flex"><div><p class="text-base font-semibold tracking-tight">Veil UI</p><p class="mt-2 max-w-xs text-sm text-muted-foreground">Accessible components for product teams.</p></div><ul class="grid gap-3 text-sm"><li class="flex items-start gap-2"><span class="mt-0.5 flex size-5 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span>Accessible primitives out of the box</li><li class="flex items-start gap-2"><span class="mt-0.5 flex size-5 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span>Own the source in your repo</li><li class="flex items-start gap-2"><span class="mt-0.5 flex size-5 items-center justify-center rounded-full bg-primary/10 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check size-3" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span>Themes driven by design tokens</li></ul><p class="text-xs text-muted-foreground">© 2026 Veil UI. All rights reserved.</p></aside><div class="flex flex-col items-center justify-center gap-6 p-6 sm:p-10"><div class="w-full max-w-sm"><form data-slot="login-form" class="grid w-full max-w-sm gap-5"><div class="grid gap-1.5"><h1 class="text-xl font-semibold tracking-tight">Welcome back</h1><p class="text-sm text-muted-foreground">Sign in to continue to your workspace.</p></div><div class="grid gap-2"><label data-slot="label" class="flex select-none items-center gap-2 text-sm font-medium leading-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50" for="login-email">Email</label><input type="email" data-slot="input" class="h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow,border-color] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30" id="login-email" autoComplete="email" required="" placeholder="you@example.com" value=""/></div><div class="grid gap-2"><div class="flex items-center justify-between gap-2"><label data-slot="label" class="flex select-none items-center gap-2 text-sm font-medium leading-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50" for="login-password">Password</label><a href="#forgot-password" class="text-xs text-primary underline-offset-4 hover:underline">Forgot password?</a></div><input type="password" data-slot="input" class="h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow,border-color] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30" id="login-password" autoComplete="current-password" required="" value=""/></div><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 w-full" type="submit">Sign in</button><p class="text-center text-sm text-muted-foreground">New here? <a href="#signup" class="font-medium text-primary underline-offset-4 hover:underline">Create an account</a></p></form></div><div class="text-center text-xs text-muted-foreground">Protected by enterprise-grade security.</div></div></div>
</template>