Skip to main content
You are currently viewing the documentation for Filament 4.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Introduction

The button component is used to render a clickable button that can perform an action:
By default, an icon buttonโ€™s underlying HTML tag is <button>. You can change it to be an <a> tag by using the tag attribute:

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:

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:

Adding a tooltip to an icon button

You can add a tooltip to an icon button by using the tooltip attribute:

Adding a badge to an icon button

You can render a badge on top of an icon button by using the badge slot:
You can change the color of the badge using the badge-color attribute: