GoldTreeDevGTD UI

문서 제목, 아이콘 이름, 앱 이름으로 검색할 수 있어요.

전체 문서 보기 이동 · Enter 열기 · Esc 닫기

CustomTooltip

New

위치·정렬·지연을 조절할 수 있는 커스텀 툴팁이에요.

사용법

버튼에 포인터를 올리거나 초점을 이동하면 Portal 툴팁이 열려요.

인터페이스

CustomTooltipProps

속성타입기본값설명
content*ReactNode툴팁 콘텐츠
children*ReactElement툴팁 트리거
side"top" | "right" | "bottom" | "left"top표시 방향
align"start" | "center" | "end"center정렬
sideOffsetnumber8트리거와의 간격(px)
delayDurationnumber180표시 지연(ms)
disabledbooleanfalse툴팁 비활성화
classNamestring툴팁 콘텐츠 클래스

CustomTooltip 컴포넌트 Props 표

가져오기

모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.

@import "@goldtreedev/ui/motion.css";

import { CustomTooltip } from "@goldtreedev/ui";
CustomTooltip · 모션 UI | GoldTreeDev Docs