Tooltip
This displays additional, floating labels on hover or tap to explain an interface element or feature.
Basic Usage
import { Tooltip } from '@krakentech/coral';
<Tooltip />With Children
<Tooltip title="Take me to my account">
<Stack alignItems="center">
<IconAccount />
<Typography>My account</Typography>
</Stack>
</Tooltip>Properties
placement
<Tooltip placement="right" />theme
<Tooltip theme="base900" />title
<Tooltip title="Custom title" />zIndex
<Tooltip zIndex={100} />Responsiveness
<Tooltip theme={{ base: "base100", lg: "base900" }} />Full API
Design
Good to know
Insert a tooltip when additional informative text is useful, this will be paired with a nearby associated element, usually an icon. Tooltip text should include short, descriptive text.
Text limit? The tooltip explainer should not exceed 150 characters
Customisation
Our tooltip component offers a couple of variations you can play with, including two icon styles:
- Filled
- Outline
Last updated on