loading…Loading
cat control-components.md
Components that gate content by auth state, authorization, and Clerk's loading lifecycle. Every pane below renders its real behavior right now, so the result reflects your actual session.
Render by whether someone is signed in.
Renders its children only when the user is authenticated.
Renders its children only when the user is not authenticated.
Pass permissions, roles, features, or plans to gate access.
Show accepts an authorization object and a fallback for the unauthorized case. Here we gate on being signed in.
React to where Clerk is in its load lifecycle.
Renders while Clerk is initializing.
clerk is loading…
Renders after Clerk has finished loading.
waiting for clerk…
Renders when Clerk is degraded (e.g. connectivity issues).
Renders when Clerk fails to load.
state
loading auth state…
available actions