Icon Buttons with Ripple
Round icon buttons with a Material-style ripple, toggle states and tooltips: standard, filled, tonal and outlined variants in three sizes.
Buttons with icons only or icon plus text.
2 component(s)
Round icon buttons with a Material-style ripple, toggle states and tooltips: standard, filled, tonal and outlined variants in three sizes.
Accessible Tailwind CSS icon buttons with tooltips as labels, toggle states, a keyboard-friendly toolbar, a navigation rail and Escape to dismiss.
An icon button is a button whose main content is an icon, either on its own (an icon-only button) or paired with a short text label. Icon-only buttons appear in toolbars, card actions, close buttons, media controls and app headers, where space is tight and the symbol is widely understood: a trash can for delete, a heart for favourite, a cross for close. Icon plus text buttons add clarity for less familiar actions such as "Export" or "Share".
An icon alone has no accessible name, so add aria-label="Delete item" to the <button> or include visually hidden text. Mark decorative SVG or font icons with aria-hidden="true" so they are not read twice. A tooltip can help sighted users but should not be the only label. Toggle buttons such as "Mute" or "Favourite" should expose their state with aria-pressed. Make sure the focus ring is visible around the whole button, not just the icon, and that the icon colour meets contrast requirements against its background.
These icon button HTML CSS snippets are available for Bootstrap 6, Bootstrap 5, Tailwind CSS and pure CSS. Most use inline SVG, so they work without an icon font; you can swap in your own icon set by replacing the SVG. Bootstrap 6 versions pick up the theme-* colour roles, while Tailwind versions use utility classes for size and colour. Preview each button live, copy the markup from the code tabs, or download it and drop it into your project.