Tooltip API
Learn about the Tooltip component's props and CSS classes.Import
import { TooltipProps } from "@prismane/core";
Props
Tooltip
extends Flex and Animation components' props.
Name | Type | Description | Default |
---|---|---|---|
label | ReactNode | The label element of the tooltip. | - |
position | PrismanePositions | The position of the tooltip. | right |
size | PrismaneBreakpoints | The size of the tooltip. | base |
color | PrismaneColors | The color of the tooltip. | base |
CSS
Tooltip
extends Flex and Animation components' CSS classes.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneTooltip-root | The container of the square component. |
root | .PrismaneTooltip-root-{color} | The container of the square component based on it's color . |
root | .PrismaneTooltip-root-{position} | The container of the square component based on it's position . |
root | .PrismaneTooltip-root-{size} | The container of the square component based on it's size . |