--- title: Badge Blade component --- ## Overview The badge component is used to render a small box with some text inside: ```blade New ``` ## Setting the size of a badge By default, the size of a badge is "medium". You can make it "extra small" or "small" by using the `size` attribute: ```blade New New ``` ## Changing the color of the badge By default, the color of a badge is "primary". You can change it to be `danger`, `gray`, `info`, `success` or `warning` by using the `color` attribute: ```blade New New New New New ``` ## Adding an icon to a badge You can add an [icon](https://blade-ui-kit.com/blade-icons?set=1#search) to a badge by using the `icon` attribute: ```blade New ``` You can also change the icon's position to be after the text instead of before it, using the `icon-position` attribute: ```blade New ```