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
| 속성 | 값 |
|---|---|
text | String (필수) |
placement | top, bottom, top-start, top-end, bottom-start, bottom-end |
delay | Number |
maxWidth | String |
Slots
| 슬롯 | 전달 값 |
|---|---|
default | 없음 |
Notes
aria-describedby연결은 자동이 아니다. 호출부가tooltipId를 대상 요소에 직접 넣어야 한다.