Tooltip
Tooltips display brief labels or messages
import { Tooltip } from '@cerberus/react'
Usage
This is a 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'}
Name | Default | Description |
---|---|---|
content | The content to display in the tooltip | |
position | 'top' | The position of the tooltip relative to the target element |
import { Tooltip } from '@cerberus/react'
Usage
This is a 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'}
Name | Default | Description |
---|---|---|
content | The content to display in the tooltip | |
position | 'top' | The position of the tooltip relative to the target element |
import { Tooltip } from '@cerberus/react'
Usage
This is a 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'}
Name | Default | Description |
---|---|---|
content | The content to display in the tooltip | |
position | 'top' | The position of the tooltip relative to the target element |
import { Tooltip } from '@cerberus/react'
Usage
This is a 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'}
Name | Default | Description |
---|---|---|
content | The content to display in the tooltip | |
position | 'top' | The position of the tooltip relative to the target element |