Tailwind CSS Badges

There are 6 available components in this category, preview them all!

Default

Screenshot
Screenshot preview of Default

Default Pill

Screenshot
Screenshot preview of Default Pill

Small

Screenshot
Screenshot preview of Small

Small Pill

Screenshot
Screenshot preview of Small Pill

With Icons

Screenshot
Screenshot preview of With Icons

With Close Button

Screenshot
Screenshot preview of With Close Button
Need more information?

Frequently Asked Questions

Let’s have a better look into Tailwind CSS Badges.

How do I position a notification count badge on an icon?

Set the icon's container to relative, then position the badge with absolute -top-1 -right-1 (adjust offsets to taste). For counts above 99, display "99+" to keep the badge compact. The pill-shaped variants work particularly well here since they grow horizontally with the text content.

Background image with component grid
Build better websites faster

2,000+ handcrafted snippets.
Now in your AI editor.

Build modern web apps and websites with Tailkit's huge collection of Tailwind components, templates and tools. Now available through our MCP Server.