Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas metus nulla, commodo a sodales sed, dignissim pretium nunc. Nam et lacus neque. Ut enim massa, sodales tempor convallis et, iaculis ac massa.
The Material Design Lite (MDL) tooltip component is an enhanced version of the standard HTML tooltip as produced by the title attribute. A tooltip consists of text and/or an image that clearly communicates additional information about an element when the user hovers over or, in a touch-based UI, touches the element. The MDL tooltip component is pre-styled (colors, fonts, and other settings are contained in material.min.css) to provide a vivid, attractive visual element that displays related but typically non-essential content, e.g., a definition, clarification, or brief instruction.
MDL class | Effect | Remarks |
---|---|---|
mdl-tooltip |
Defines a container as an MDL tooltip | Required on tooltip container element |
mdl-tooltip--large |
Applies large-font effect | Optional; goes on tooltip container element |
mdl-tooltip--left |
Positions the tooltip to the left of the target | Optional; goes on tooltip container element |
mdl-tooltip--right |
Positions the tooltip to the right of the target | Optional; goes on tooltip container element |
mdl-tooltip--top |
Positions the tooltip to the top of the target | Optional; goes on tooltip container element |
mdl-tooltip--bottom |
Positions the tooltip to the bottom of the target | Optional; goes on tooltip container element |