A button
component to log out an authenticated user.
Properties
Name | Type | Required | Default | Description |
---|
state | State | no | undefined | The component’s internal state. |
Methods
Name | Description |
---|
logout | Ends the current session. |
Custom Events
Name | Description | Type |
---|
np:logout | The session is closed. | void |
np:error | Something went wrong. | NoPwdError |
The np:error
custom event detail inherits from the NoPwdError
.
Slots
Name | Description |
---|
(default) | The button’s label. |
loggingout | Closing the session. |
loggedout | Session is closed. |
error | An error occurred. |
Usage:
Parts
Name | Description |
---|
button | The component’s button wrapper. |
Usage: