Full-height security notification screen listing the device, location, and time of a new sign-in, with confirm-it-was-me and secure-my-account actions. Perfect for suspicious-login alerts and account safety prompts.
Full-height security notification screen: an icon and message announce a new sign-in, a list of device/location/time details each with their own icon badge, and two independent actions ("this was me" confirm, "secure my account"), with a footer caption below.
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/auth18?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth18?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth18.tsx and the button shadcn/ui primitive it's built on.
The installed file exports auth18Demo alongside the block: the exact props behind the preview above. Spread it to get a working security-alert screen in one line.
import { Auth18, auth18Demo } from "@/components/beste/block/auth18";
export default function SecurityAlertPage() {
return <Auth18 {...auth18Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Clock, Monitor, ShieldAlert } from "lucide-react";
import { Auth18 } from "@/components/beste/block/auth18";
export default function SecurityAlertPage() {
return (
<Auth18
icon={<ShieldAlert className="size-6" />}
heading="New sign-in detected"
description="We noticed a new sign-in to your account. If this was you, no action is needed."
details={[
{ icon: <Monitor className="size-5" />, label: "Device", value: "Chrome on macOS" },
{ icon: <Clock className="size-5" />, label: "Time", value: "Today at 14:32" },
]}
confirmButton={{ label: "Yes, this was me", href: "/account" }}
secureButton={{ label: "Secure my account", href: "/account/security" }}
labels={{ footer: "For your safety, this link expires in 24 hours." }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
icon | React.ReactNode | – | Icon shown inside the circular badge above the heading |
heading | string | – | Screen title |
description | string | – | Message below the heading |
details | SignInDetail[] | [] | Label/value rows describing the sign-in |
confirmButton | { label: string; href: string } | – | Filled "this was me" action |
secureButton | { label: string; href: string } | – | Outline "secure my account" action |
labels | { footer?: string } | {} | Footer caption text |
className | string | – | Extra classes for the outer <section> |
type SignInDetail = {
icon: React.ReactNode;
label: string;
value: string;
};<form>, no inputs, and no local state; both actions are plain links.details row shows a leading icon in a circular bg-muted badge next to a label/value pair (e.g. "Device" / "Chrome on macOS"); the value text is truncated with truncate if it overflows its row.confirmButton (filled) and secureButton (variant="outline") render independently: either, both, or neither can appear, and there is no logic tying one to the other.labels.footer renders as a plain caption below the card only when set; the "expires in 24 hours" copy in the demo is static text with no actual countdown or expiry logic behind it.details list itself is optional and only renders when non-empty, so the block can also serve as a bare confirm/secure prompt without any device information.auth46
Full-height step-up authentication screen that re-asks for the password before a sensitive action, showing the signed-in account and a cancel option. Perfect for protecting billing, security, and destructive actions.
auth40
Full-height change-password screen with current, new, and confirm password fields (show/hide toggles), a forgot-password link, and a cancel option. Perfect for account security settings.
auth5
Full-height reset-password screen with new and confirm password fields (each with a show/hide toggle) and a live requirements checklist that ticks off rules as the user types. Perfect for the final step of a password reset or invite flow.
auth27
Full-height authentication error screen with a warning icon, an explanation, an optional error code, and try-again, back, and contact-support actions. Perfect for failed sign-in and OAuth callback errors.
auth17
Full-height signed-out screen with a centered icon, a heading and message, a sign-back-in button, and a return-home link. Perfect for logout confirmations and expired-session pages.
auth8
Full-height re-authentication screen showing the signed-in user's avatar, name, and email with a single password field, a forgot-password link, and a use-a-different-account option. Perfect for session unlock and returning-user prompts.