Logout
The user-menu item that signs the user out.
Installation
pnpm dlx shadcn@latest add @chelone/logoutThe user-menu item that signs the user out.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| icon | ReactNode | — | Custom icon rendered alongside the logout label. Defaults to a power icon. |
| redirectTo | string | — | Path the user is redirected to after logout. Passed through to the authProvider's `logout` params. |