---
title: Icon button Blade component
---
## Overview
The button component is used to render a clickable button that can perform an action:
```blade
```
## Using an icon button as an anchor link
By default, an icon button's underlying HTML tag is ``. You can change it to be an `` tag by using the `tag` attribute:
```blade
```
## Setting the size of an icon button
By default, the size of an icon button is "medium". You can make it "extra small", "small", "large" or "extra large" by using the `size` attribute:
```blade
```
## Changing the color of an icon button
By default, the color of an icon button is "primary". You can change it to be `danger`, `gray`, `info`, `success` or `warning` by using the `color` attribute:
```blade
```
## Adding a tooltip to an icon button
You can add a tooltip to an icon button by using the `tooltip` attribute:
```blade
```
## Adding a badge to an icon button
You can render a [badge](badge) on top of an icon button by using the `badge` slot:
```blade
3
```
You can [change the color](badge#changing-the-color-of-the-badge) of the badge using the `badge-color` attribute:
```blade
3
```