On this page
API Reference

Tooltip#

Github

Tooltip is a user interface element that displays a small hint box when the user hovers over an element, providing additional information or instructions. Tooltips are commonly used to help users understand certain elements or features in the interface.

import { Tooltip } from "wis/tooltip"

API Reference#

NameTypeDefaultDescription
sidetop right left bottomtopThe preferred side of the trigger to render against when open. May change when collisions occur.
alignstart center endcenterThe preferred alignment against the trigger. May change when collisions occur.
textstringnoneThe content text to render in the tooltip.
openbooleannoneThe controlled open state of the tooltip. Must be used in conjunction with onOpen
defaultOpenbooleannoneThe open state of the tooltip when it is initially rendered.
onOpen(open: boolean) => voidnoneEvent handler called when the tooltip is open state change.