TooltipA floating element that displays contextual information when a user hovers over or focuses on a control.stableView sourceRadix ThemesReka UIvue<script setup lang="ts"> import PlusIcon from '~icons/ri/add-line' import { Tooltip, IconButton } from '@typlog/ui' </script> <template> <div class="flex"> <Tooltip content="Add to library"> <IconButton radius="full"> <PlusIcon /> </IconButton> </Tooltip> </div> </template>Show codeAPI Reference PropDefaultTypecolor"gray"ColorBackground color of the tooltip popup.content–stringThe content associated with the tooltip.maxWidth"360px"stringThe max width of the tooltip popup. Props inherited from Reka UI Examples By default, the tooltip has a black background in light mode and a white background in dark mode. You can customize the background color using the color prop.Color vue<script setup lang="ts"> import PlusIcon from '~icons/ri/add-line' import { Tooltip, IconButton } from '@typlog/ui' </script> <template> <div class="flex items-center gap-4"> <Tooltip content="Add to library" color="indigo"> <IconButton color="indigo" radius="full"> <PlusIcon /> </IconButton> </Tooltip> <Tooltip content="Add to library" color="violet"> <IconButton color="violet" radius="full"> <PlusIcon /> </IconButton> </Tooltip> <Tooltip content="Add to library" color="crimson"> <IconButton color="crimson" radius="full"> <PlusIcon /> </IconButton> </Tooltip> <Tooltip content="Add to library" color="amber"> <IconButton color="amber" radius="full"> <PlusIcon /> </IconButton> </Tooltip> </div> </template>Show code