Tutorialsplane

Angular Material Tooltip


Angular Material Tooltip: Tooltips are basically used to provide extra information about the link, icon or buttons etc. md-tooltip is used to create tooltips in Angular Material. Here in this tutorial we are going to explain how you can add tooltip to the links, icons etc. You can also use our online editor to edit and run the code online.


Angular Material Tooltip Example

Tooltip is activated when user focuses, hovers or touches. Let us create a simple example to understand the tooltip functionality.

Angular Material Tooltip Example:

<md-button class="md-fab md-accent" aria-label="Download">
	  <md-tooltip>
	    Download Data
	  </md-tooltip>
	  <i class="material-icons">cloud_download</i>
</md-button>
<md-button class="md-fab md-accent" aria-label="Download">
	  <md-tooltip>
          Capture Image
	  </md-tooltip>
	  <i class="material-icons">add_a_photo</i>
</md-button>

Try it »

Try It On →

In the above example we have added tooltip for buttons, you can add for links, icons on the same way. The tooltip will be triggered when you hover or click on the button.

If you run the above example it will produce the output something like this –

Learn Angular Material