A flexible button component that accepts any PrimeIcons class as an attribute.
The icon button requires the icon attribute with a PrimeIcons class name:
Examples of commonly used icons in applications:
Icons for navigation and directional controls:
Icons for media playback and controls:
Click a button to see the click event in the console:
The icon can be changed dynamically by updating the attribute: