<np-if>
The
<np-if>
component provides a simple way to conditionally render UI elements based on the user’s authentication state. You are authenticated.
You are not authenticated.
Slots
Name | Description |
---|---|
authenticated | Rendered when a session is active. |
unauthenticated | Rendered when the user is not logged in. |
unknown | Rendered when the session state is currently unknown. |
Usage: