Badges (Tags)

Ready to use Tailwind CSS badge (also known as tag) components with production-ready, copy-paste HTML code. Use them as they are, or as a starting point to build beautiful websites.

Badges, sometimes called tags or chips, are those small label things that show status, categories, counts, or just metadata. We have a decent set: solid filled, soft/light background, outline style, with and without a dot indicator, with a remove button, and pill vs. slightly rounded shapes. They come in a handful of colors and sizes. Small components but you end up needing them in a lot of places once you start building a real UI.

Tailwind

Frequently asked questions

Solid fill, soft background, outline/ghost, with a colored dot, with an X remove button, pill shape, and slightly rounded. Multiple color options.

The remove variants have a small X button inside the badge. Just wire up a click handler in JavaScript to remove the element from the DOM, something like button.closest('.badge').remove().

Yes. They work well as clickable filter tags, add a hover state and a click handler and you're most of the way there.

Yes, same thing. Different frameworks call them different things, badges, chips, tags, pills. Same pattern.

Related Tailwind CSS components

More free, copy-paste Tailwind CSS components to use in your projects.