Skip to main content

Interface: TooltipIconProps

Defined in: packages/ui/src/components/TooltipIcon.tsx:10

Props for the TooltipIcon component.

Properties

data-testid?

optional data-testid: string

Defined in: packages/ui/src/components/TooltipIcon.tsx:28

Test ID for testing purposes.


icon

icon: IconType

Defined in: packages/ui/src/components/TooltipIcon.tsx:14

The icon to display. Can be a string identifier or an icon object from @ttoss/react-icons.


onClick()?

optional onClick: () => void

Defined in: packages/ui/src/components/TooltipIcon.tsx:18

Optional click handler for the icon.

Returns

void


sx?

optional sx: Record<string, unknown>

Defined in: packages/ui/src/components/TooltipIcon.tsx:37

Additional styles to apply to the Text wrapper component.


tooltip?

optional tooltip: Omit<TooltipProps, "variant">

Defined in: packages/ui/src/components/TooltipIcon.tsx:24

Optional tooltip configuration. Pass tooltip props to display a tooltip when hovering over the icon. The 'variant' prop is excluded as it's controlled by the component's variant prop.


variant?

optional variant: "success" | "warning" | "error" | "info"

Defined in: packages/ui/src/components/TooltipIcon.tsx:33

Visual variant for both the text wrapper and tooltip.

Default

'info'