HelpTooltip
This is just a thin wrapper over the
Tooltip
component because it is a common need to use a help icon with a tooltip. However, note that it is generally recommended to only use tooltips to provide supplementary rather than essential information to users.import { HelpTooltip } from "rfui";
Basic
<HelpTooltip content="Example content" />
Direction
<Stack class="items-center gap-8 p-8">
<HelpTooltip content="Example content" direction="top" />
<HelpTooltip content="Example content" direction="right" />
<HelpTooltip content="Example content" direction="bottom" />
<HelpTooltip content="Example content" direction="left" />
</Stack>
Size
<Stack class="items-center gap-8 p-8">
<HelpTooltip content="Example content" size="sm" />
<HelpTooltip content="Example content" size="md" />
<HelpTooltip content="Example content" size="lg" />
</Stack>
Props
Prop | Required | Default | Type and notes |
---|---|---|---|
content | ✔ | - |
|
direction | - | "right" |
|
size | - | "md" |
|
...rest | - | - |
See the docs for rest parameters. For HelpTooltip , you could pass anything you normally would pass to <span> because the return value looks something like this:
|