Skip to content
rw3iss Auth

AuthStatusBadge

atom @rw3iss/auth-client/preact/atoms/AuthStatusBadge framework-adapters/preact/components/atoms/AuthStatusBadge.tsx ↗

Tiny pill rendering the current auth status. Drives entirely off the AuthClient snapshot — no extra state — so it stays in sync across the app and across tabs.

Usage

Theming via CSS variables on .vauth-status-badge. Reads —vauth-color-success, —vauth-color-warn, —vauth-color-muted from the surrounding scope.

Usage

import { AuthStatusBadge } from '@rw3iss/auth-client/preact/atoms';
<AuthStatusBadge />

Props

NameTypeDescription
clientAuthClientOptional override; defaults to the AuthProvider-supplied client.
classNamestringExtra className(s) to merge.