import { Tooltip } from "@mpiorowski/svelte-init";
<Tooltip tooltip={'tooltip text'} position={'top'} move={0.2}>
<div>Hoverable element with tooltip</div>
</Tooltip>
Prop | Values | Default |
---|---|---|
tooltip | string | |
position | top , right , left , bottom |
top |
move | number | 0 |
move
prop is for small adjustments to tooltip position.