element-plus/docs/examples/tooltip-v2/a11y.vue
JeremyWuuuuu f576d5a57b
feat(components): [tooltip-v2] documentation (#6870)
- Add tooltip-v2 documentation
- Complete tooltip-v2 implementation
2022-03-29 15:12:10 +08:00

17 lines
351 B
Vue

<template>
<el-tooltip-v2 :aria-label="title">
<template #trigger>
<el-button
><el-icon><Delete /></el-icon
></el-button>
</template>
{{ content }}
</el-tooltip-v2>
</template>
<script setup lang="ts">
import { Delete } from '@element-plus/icons-vue'
const content = 'Delete'
const title = 'Delete item'
</script>