LogoLogo
  • What is UDML?
  • Document structure
    • <components>
    • <imports>
    • <instructions>
    • <meta>
    • <styles>
    • <tokens>
    • <mappings>
    • <screens>
  • Directives
    • ai-hint
    • <data> Directive Specification
    • <interaction> Directive
    • <layer> Directive
    • <repeat> Directive
    • <responsive>
    • selection
    • <tracking> Directive
  • Components
    • Layout
      • <accordion> Component
      • <box> Component
      • <column> Component
      • <divider>
      • <grid> Component
      • <row> Component
    • Navigation
      • <breadcrumbs> Component
      • <pagination> Component
      • <tab> Component
      • <tabs> Component
    • Text & Display
      • <avatar>
      • <heading>
      • <icon>
      • <image>
      • <label>
      • <text>
      • <video>
    • Controls & Input
      • <button>
      • <checkbox>
      • <input> Component
      • <radio>
      • <select>
      • <slider>
      • <stepper>
      • <switch>
      • <textarea>
    • Forms
      • <form> Component
      • <formField> Component
      • <formGroup> Component
    • Data Collections
      • <dataColumn> Component
      • <dataTable> Component
      • <list> Component
      • <timeline> Component
      • <treeView> Component
    • Data Visualization
      • <chart> Component
      • <summary> Component
    • Modals
      • <dialog> Component
      • <modal> Component
      • <popover> Component
      • <toast> Component
      • <tooltip> Component
  • Prompting Guides
    • Prompting AI Developer Tools with UDML
    • Working with UDML in an Existing Codebase
  • Contributing to UDML
Powered by GitBook
On this page
  • The <tooltip> component provides contextual help or labels when users hover or focus on an element.
  • 🛠 Attributes
  • ✅ Allowed Content
  • 💡 Examples
  • 🧩 AI Interpretation Guidelines
Edit on GitHub
  1. Components
  2. Modals

<tooltip> Component

The <tooltip> component provides contextual help or labels when users hover or focus on an element.

🛠 Attributes

Attribute
Type
Required
Description

text

string

Yes

Tooltip content

position

string

No

top, bottom, left, right

trigger

string

No

hover, focus, manual

✅ Allowed Content

Single interactive or icon element as a child.

💡 Examples

Tooltip on icon

<tooltip text="Settings" position="bottom">
  <icon name="gear"/>
</tooltip>

🧩 AI Interpretation Guidelines

  • Wrap target element with tooltip handler.

  • Use text as the content and position for placement.

  • Trigger on hover/focus unless manual is specified.


Previous<toast> ComponentNextPrompting Guides

Last updated 2 months ago