Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

<SignedOut />

The <SignedOut /> component offers authentication checks as a cross-cutting concern. Any child nodes wrapped by a <SignedOut /> component will be rendered only if there's no User signed in to your application.

Usage

app.tsx
import "@/styles/globals.css"; import { ClerkProvider, RedirectToSignIn, SignedOut, } from "@clerk/nextjs"; import { AppProps } from "next/app"; function MyApp({ Component, pageProps }: AppProps) { return ( <ClerkProvider {...pageProps}> <SignedOut> <div>You are signed Out</div> </SignedOut> <div>Always visible</div> </ClerkProvider> ); } export default MyApp;

Last updated on November 21, 2023

What did you think of this content?

Clerk © 2023