Skip to main content

Tooltip

This is the <Tooltip /> component. Use the direction to change the placement



Left
Top
Bottom
Right

Basic Usage

import Tooltip from '@candy/kitkat/tooltip'
import { InfoCircle } from '@candy/kitkat/icons'

export const MyComponent = () => (
<Tooltip direction="top" text={tooltipContent}>
<InfoCircle width={16} />
</Tooltip>
)

Tooltip Props

NameTypeDefaultDescription
textReactNode \| stringTooltip content
direction?'left', 'right', 'bottom', 'top'rightTooltip placement
width?stringTooltip css width