mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
docs(tooltip): update
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const open = ref(true)
|
const open = ref(true)
|
||||||
|
|
||||||
// Note: This is for demonstration purposes only. Don't do this at home.
|
defineShortcuts({
|
||||||
onMounted(() => {
|
o: () => open.value = !open.value
|
||||||
setInterval(() => {
|
|
||||||
open.value = !open.value
|
|
||||||
}, 1000)
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ links:
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
Use a [Button](/components/button) or any other component in the default slot of the Tooltip.
|
||||||
|
|
||||||
::important
|
::important
|
||||||
Make sure to wrap your app with the [`App`](/components/app) component to make the Tooltip work properly.
|
Make sure to wrap your app with the [`App`](/components/app) component to make the Tooltip work properly.
|
||||||
::
|
::
|
||||||
@@ -172,6 +174,10 @@ props:
|
|||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
::note
|
||||||
|
In this example, press :kbd{value="O"} to toggle the Tooltip.
|
||||||
|
::
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|||||||
Reference in New Issue
Block a user