# buttonize

Source: https://zotonic.com/docs/1998/buttonize

URI: https://zotonic.com/id/1998

Language: en



Add button interaction classes to an element.

The action adds `hover` during pointer hover and `clicked` while the pointer is pressed, removing each class when its corresponding interaction ends.

For example:

```django
{% wire id="preview" action={buttonize} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1998?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1998?language=en>)
