Skip to content

Tooltip Documentation #4

Description

@francesco-iacono

Tooltip Component

Description:
Tooltip is a functional component used to display tooltip content at a specified position relative to its target.

Props:
x: X-coordinate position of the tooltip.
y: Y-coordinate position of the tooltip.
children (optional): The content to be displayed within the tooltip.
style (optional): Additional CSS styles for the tooltip.
horizontalAnchor (optional): Horizontal anchor position of the tooltip: 'start' | 'center' | 'end'. Default is 'center'.
verticalAnchor (optional): Vertical anchor position of the tooltip: 'start' | 'center' | 'end'. Default is 'center'.
horizontalSpacing (optional): Horizontal spacing between the tooltip and its target.
verticalSpacing (optional): Vertical spacing between the tooltip and its target.

Example:

<Tooltip
  x={100}
  y={100}
  horizontalAnchor="start"
  verticalAnchor="end"
  horizontalSpacing={10}
  verticalSpacing={5}
>
  {/* Tooltip content */}
</Tooltip>

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions