
- 사용법
- 프로퍼티
복사
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"
/>
</>
);
};
| 프로퍼티 | 유형 | 설명 |
|---|---|---|
| 클래스 네임 | 문자열 | 추가 스타일링을 위한 선택적 CSS 클래스 |
| 앵커 선택 | CSS 선택자 | 툴팁 앵커(툴팁을 트리거하는 요소)의 선택자 |
| 내용 | 문자열 | 툴팁 내에 표시할 내용을 입력하세요 |
| 지연 숨기기 | 숫자 | 커서가 앵커를 떠난 후 툴팁이 숨겨지기까지의 지연 시간(초) |
| 오프셋 | 숫자 | 툴팁 위치 조건을 위한 픽셀 단위의 오프셋 |
| 화살표 없음 | 부울 | true이면 툴팁의 화살표가 숨겨집니다 |
| 열림 여부 | 부울 | true이면 툴팁이 기본적으로 열려 있습니다 |
| 위치 | react-tooltip의 PlacesType 문자열 | 툴팁의 배치를 지정합니다. 값으로는 bottom, left, right, top, top-start, top-end, right-start, right-end, bottom-start, bottom-end, left-start, left-end 등이 있습니다. |
| 위치 전략 | react-tooltip의 PositionStrategy 문자열 | 툴팁에 대한 위치 전략입니다. 두 가지 값: 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} />;
};
| 프로퍼티 | 유형 | 설명 |
|---|---|---|
| 텍스트 | 문자열 | 오버플로 텍스트 영역에 표시할 내용을 입력하세요 |