diff --git a/playground/pages/tooltip.vue b/playground/pages/tooltip.vue
index b4d97f43..818fb096 100644
--- a/playground/pages/tooltip.vue
+++ b/playground/pages/tooltip.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/runtime/components/Tooltip.vue b/src/runtime/components/Tooltip.vue
index 56c8425c..7c0c796b 100644
--- a/src/runtime/components/Tooltip.vue
+++ b/src/runtime/components/Tooltip.vue
@@ -7,8 +7,7 @@ import theme from '#build/ui/tooltip'
const tooltip = tv({ extend: tv(theme), ...(appConfig.ui?.tooltip || {}) })
export interface TooltipProps extends TooltipRootProps, Omit {
- text?: string
- disabled?: boolean
+ content?: string
arrow?: boolean
portal?: boolean
class?: any
@@ -19,7 +18,7 @@ export interface TooltipEmits extends TooltipRootEmits {}
export interface TooltipSlots {
default(): any
- text(): any
+ content(): any
}
@@ -31,7 +30,7 @@ import { reactivePick } from '@vueuse/core'
defineOptions({ inheritAttrs: false })
const props = withDefaults(defineProps(), {
- text: '',
+ content: undefined,
side: 'bottom',
delayDuration: 0,
sideOffset: 8,
@@ -58,18 +57,18 @@ const ui = computed(() => tooltip())
-
- {{ text }}
+
+ {{ content }}
-
+