> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# widget:logout

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/tags/lightning.directive.widgetLogout

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.widgetLogout.md

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1185.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Description

Redirects the user to `<app context>/logout/` when clicked

## Usage

as element:

```xml wrap  theme={"dark"}
<widget:logout>
</widget:logout>
```

### Directive info

* This directive creates new scope.

## Example

#### Source

```xml wrap  theme={"dark"}
<widget:logout></widget:logout>
```

#### Result

![Result](https://mintcdn.com/lucidworks/J_LymSfRoWq3UOvg/assets/images/app-studio/as-examples/tags/widgetLogout.png?fit=max\&auto=format\&n=J_LymSfRoWq3UOvg\&q=85\&s=21bc4d1460c52acb224dc62f220f7f6d)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.