# app/avo/actions/toggle_inactive.rb
class Avo::Actions::ToggleInactive < Avo::BaseAction
  def handle(**args)
    if arguments[:special_message]
      succeed "I love 🥑"
    else
      succeed "Success response ✌️"
    end
  end
end
```
</Option>

<Option name="`icon`" headingSize="3">

<VersionReq version="3.5.6" class="mt-4" />

The `icon` option lets you specify the icon to display next to the action in the dropdown menu. Avo supports [Heroicons](https://heroicons.com) by default.

Here's an example of how you can define actions with icons:

```ruby{4}