The IconButton component provides a compact, icon-based interactive element for user actions. It's ideal for toolbar actions, navigation controls, and other UI elements where space is limited.
IconButtons come in different sizes to accommodate various use cases.
Add tooltips to provide context for icon buttons.
An icon button has no text, so it needs a name for screen readers. It takes the first of aria-label, ariaLabel and a tooltip that is plain text, so the tooltips above already name their buttons. It is never named after its icon key. Without any of them it warns in development.
Customize the border radius of the IconButton for different design needs.
IconButtons can function as links when provided with an href property.
Use the children prop to add custom content to the IconButton.