본문으로 건너뛰기

Tooltip ​

Tooltip은 요소에 마우스를 올리거나 포커스하면 짧은 설명을 띄우는 요소입니다. 주로 아이콘만 있는 버튼처럼 이름이 화면에 보이지 않는 요소에 사용됩니다. 화면을 복잡하게 만들지 않으면서 필요한 순간에만 설명을 보여 줍니다.

State ​

Code ​

vue
<script setup>
import { ATooltip, AButton } from '@mobigen/rnd-design-system'
</script>

<template>
  <ATooltip text="Add to library">
    <AButton variant="secondary">Hover me</AButton>
  </ATooltip>
</template>

Props ​

속성값
textString (필수)
placementtop, bottom, top-start, top-end, bottom-start, bottom-end
delayNumber
maxWidthString

Slots ​

슬롯전달 값
default없음

Notes ​

  • aria-describedby 연결은 자동이 아니다. 호출부가 tooltipId를 대상 요소에 직접 넣어야 한다.