> ## 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:tutorial

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

[mintlify link]: https://doc.lucidworks.com/docs/5/app-studio/reference/tags/lightning.directive.widgetTutorial

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

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

## Description

Checks a cookie to determine whether to show the content and sets the
cookie when an event is triggered

## Usage

as element:

```xml wrap  theme={"dark"}
<widget:tutorial
       cookie="{string}"
       [event="{string}"]
       [delete="{string}"]>
</widget:tutorial>
```

### Directive info

* This directive creates new scope.

#### Parameters

| Param | Type | Details |
| - | - | - |
| cookie | **string** | The name of the cookie to check and set |
| event  *(optional)* | **string** | The name of the event to set the cookie. Defaults to cookie attribute `_set` |
| delete  *(optional)* | **string** | The name of the event to delete the cookie. Defaults to cookie attribute  `'_delete'` |


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