Tooltip
Usage
Include CSS
Import Tailwind and one full A3S UI style bundle.
Or import only the base CSS, Tooltip component CSS, and one style pack.
Using CDN or bundler imports? See the Installation page.
Add your tooltip HTML
Add data-tooltip to the trigger element. Use data-side and data-align to change the position:
data-tooltip: Tooltip text.data-sideOptional:top,bottom,left,right,inline-start, orinline-end. Defaults totop.data-alignOptional:start,center, orend. Defaults tocenter.
A3S UI tooltips are CSS-only and text-only. This intentionally differs from shadcn/ui's composed tooltip content, which can render arbitrary markup and uses a portal.