diff --git a/apps/ui-kit/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx b/apps/ui-kit/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx index 972a53873bc..995a229b789 100644 --- a/apps/ui-kit/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +++ b/apps/ui-kit/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx @@ -5,6 +5,7 @@ import React from 'react'; import cx from 'classnames'; import { Info } from '@iota/ui-icons'; import { ValueSize } from './keyValue.enums'; +import { Tooltip, TooltipPosition } from '../tooltip'; interface KeyValueProps { /** @@ -20,9 +21,13 @@ interface KeyValueProps { */ valueLink?: string; /** - * Show info icon (optional). + * The tooltip position. */ - showInfoIcon?: boolean; + tooltipPosition?: TooltipPosition; + /** + * The tooltip text. + */ + tooltipText?: string; /** * The supporting label of the KeyValue (optional). */ @@ -36,7 +41,8 @@ interface KeyValueProps { export function KeyValueInfo({ keyText, valueText, - showInfoIcon, + tooltipPosition, + tooltipText, supportingLabel, valueLink, size = ValueSize.Small, @@ -45,7 +51,11 @@ export function KeyValueInfo({
{keyText} - {showInfoIcon && } + {tooltipText && ( + + + + )}
{valueLink ? ( diff --git a/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx b/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx index 901b12e3b1d..54cd58451d2 100644 --- a/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx +++ b/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx @@ -21,7 +21,7 @@ export function Panel({ return (
diff --git a/apps/ui-kit/src/lib/components/atoms/tooltip/Tooltip.tsx b/apps/ui-kit/src/lib/components/atoms/tooltip/Tooltip.tsx index c1ab174d0e8..db0e6d878ed 100644 --- a/apps/ui-kit/src/lib/components/atoms/tooltip/Tooltip.tsx +++ b/apps/ui-kit/src/lib/components/atoms/tooltip/Tooltip.tsx @@ -22,7 +22,7 @@ export function Tooltip({ {children}