
- 使用方法
- プロパティ
コピー
AIに質問
import { AppTooltip } from "@/ui/display/tooltip/AppTooltip";
export const MyComponent = () => {
return (
<>
<p id="hoverText" style={{ display: "inline-block" }}>
Customer Insights
</p>
<AppTooltip
className
anchorSelect="#hoverText"
content="Explore customer behavior and preferences"
delayHide={0}
offset={6}
noArrow={false}
isOpen={true}
place="bottom"
positionStrategy="absolute"
/>
</>
);
};
| プロパティ | タイプ | 説明 |
|---|---|---|
| className | string | 追加のスタイリング用のオプションのCSSクラス |
| anchorSelect | CSSセレクタ | ツールチップのアンカー(ツールチップをトリガーする要素)のセレクタ |
| content | string | ツールチップ内に表示したいコンテンツ |
| delayHide | 数 | アンカーからカーソルが離れた後、ツールチップを非表示にする前の遅延(秒) |
| offset | 数 | ツールチップの位置を決めるためのオフセット(ピクセル) |
| noArrow | ブール型 | trueの場合、ツールチップの矢印を非表示にします |
| isOpen | ブール型 | trueの場合、ツールチップはデフォルトで開かれています |
| place | react-tooltipからのPlacesType文字列 | ツールチップの配置を指定します。 値はbottom、left、right、top、top-start、top-end、right-start、right-end、bottom-start、bottom-end、left-start、left-endなどがあります |
| positionStrategy | react-tooltipからのPositionStrategy文字列 | ツールチップの位置戦略。 2つの値があります: absolute と fixed |
ツールチップを伴うオーバーフローテキスト
オーバーフローテキストを処理し、テキストがオーバーフローしたときにツールチップを表示します。- 使用方法
- プロパティ
コピー
AIに質問
import { OverflowingTextWithTooltip } from 'twenty-ui/display';
export const MyComponent = () => {
const crmTaskDescription =
'Follow up with client regarding their recent product inquiry. Discuss pricing options, address any concerns, and provide additional product information. Record the details of the conversation in the CRM for future reference.';
return <OverflowingTextWithTooltip text={crmTaskDescription} />;
};
| プロパティ | タイプ | 説明 |
|---|---|---|
| テキスト | string | オーバーフローテキストエリア内に表示したいコンテンツ |