ai-hint
The ai-hint
attribute is a lightweight, optional tool for providing natural-language context to AI developer tools. It can clarify the purpose of any component, layout, slot, or binding.
🧠 Purpose
To help AI developer agents infer semantic roles, expected behavior, or business logic when structure alone isn't clear.
🛠 Usage
On components
On generic or ambiguous elements
On slots
🔁 Applicability
ai-hint
can be used on:
Layout primitives (
<layout>
,<group>
,<box>
)Interactive elements (
<button>
,<input>
,<link>
)Data-driven content (
<binding>
,<slot>
)Custom components and containers
🧠 AI Interpretation Guidelines
Read
ai-hint
as freeform intent descriptionUse it to resolve ambiguities, especially in generic tags
Optionally surface
ai-hint
as part of docs, tooltips, or dev comments
✅ Summary
Always optional, never rendered
Enhances AI inference and code scaffolding
Valuable for ambiguous or flexible elements
Last updated