Go Main page
Go Main page

Web components

cover

components

Tooltip

v.1.0.0 | Saturn

Import

import { Tooltip } from '@kubit-ui-web/react-components'
1
<Tooltip variant="DEFAULT" content={{ content: 'Content' }} />

Props

Let's delve into the versatility of the tooltip component by examining all its avalaible props.

PropertyTypeDefaultDescription
variant
Required
String-Variant to add styles
children
Required
JSX.Element or String or ReactNode-Children
onOpenClose(open: boolean) => void-Informs when the tooltip is closed or opened
alignTooltipAlignType-Position of the toltip
disabledBoolean-When true, the tooltip will not be shown and no action will be executed
titleTooltipTitleType-Title of the tooltip
contentTooltipContentType-Aria label text for progress bar
closeIconIIcon-Add icon
childrenAsButtonBooleantrueTooltip trigger wrapper will be a button. Use when children is not focusable
animationCssAnimationType-Variant to add styles
animationOptionsICssAnimationOptions-CssAnimation options (duration, delay, iterationCount, timingFunction, ...)
animationExecutionCssAnimationExecuteOption-CssAnimation execute option
tooltipAsModalBoolean-Tooltip behaviour will be as a modal
popoverTooltipPopoverType-Object to modify popover value
dragIconIElementOrIcon-Drag icon
dataTestIdString-Test id of the tooltip. Internal components will concatenate from this test id
ctvTooltipVariantStylesProps-Modify styles for the default version of the component