Files
WRNexusJS/packages/ui/components/tooltip.wrn
T
2026-07-12 15:55:18 +05:30

11 lines
253 B
Plaintext

// CSS-only tooltip shown on hover/focus. Wrap the trigger content in the slot.
component Tooltip {
props {
text = ""
class = ""
}
view {
<span class="wire-tooltip {class}" data-tooltip="{text}" tabindex="0"><slot></slot></span>
}
}