Tooltip

Short explanation that appears on hover or keyboard focus.

CSS onlyHover and focus
BackgroundGridAccent

Corners

SharpDefaultRound

Shadow

NoneNoneStrong

Motion

NoneDefaultBounce
<style>
.ux-tip{position:relative;display:inline-block}
.ux-tip button{height:40px;padding:0 20px;border-radius:calc(10px * var(--r,1));border:1.5px solid var(--line,#cfd2da);background:var(--bg,#fff);color:var(--fg,#14151a);font:500 14px system-ui;cursor:pointer}
.ux-tip::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%,4px);padding:6px 10px;border-radius:calc(8px * var(--r,1));background:var(--fg,#14151a);color:var(--bg,#fff);font:500 12px system-ui;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity var(--dur,.15s) var(--ease,ease),transform var(--dur,.15s) var(--ease,ease)}
.ux-tip:hover::after,.ux-tip:focus-within::after{opacity:1;transform:translate(-50%,0)}
</style>

<span class="ux-tip" data-tip="Copy the link">
  <button type="button">Share</button>
</span>

When to use it

Use this to tell someone what just happened or what is currently happening — a result, a status, or a state that changes over time.

Accessibility

Check that it reaches every state with the keyboard alone before you ship it, and keep the focus ring instead of removing it for looks. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.