Tooltip

Tooltips display brief labels or messages

import { Tooltip } from '@cerberus/react'

Usage

The icon color has been customized to see on this background

Preview Playground

import { Tooltip, type TooltipProps } from '@cerberus/react' export function MyTooltip(props: TooltipProps) { return ( <Tooltip position="top" content=This is a tooltip > {props.children} </Tooltip> ) }

Customization

To customize the tooltip, we recommend extending the Tooltip slot recipe found in the preset.

API

export interface TooltipProps {
content: ReactNode
position?: 'top' | 'right' | 'bottom' | 'left'
}
NameDefaultDescription
contentThe content to display in the tooltip
position'top'The position of the tooltip relative to the target element