Skip to content

Commit

Permalink
chore: update stories
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Aug 31, 2023
1 parent da760a6 commit 776e8e2
Show file tree
Hide file tree
Showing 6 changed files with 480 additions and 33 deletions.
29 changes: 29 additions & 0 deletions packages/components/tooltip/src/stories/Controlled.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script setup lang="ts">
import {
OkuTooltip,
OkuTooltipArrow,
OkuTooltipContent,
OkuTooltipPortal,
OkuTooltipProvider,
OkuTooltipTrigger,
} from '@oku-ui/tooltip'
import { ref } from 'vue'
const open = ref(true)
</script>

<template>
<OkuTooltipProvider>
<OkuTooltip v-model="open">
<OkuTooltipTrigger class="triggerClass">
I'm controlled, look I'm {{ open ? 'open' : 'closed' }}
</OkuTooltipTrigger>
<OkuTooltipPortal>
<OkuTooltipContent class="contentClass" :side-offset="5">
Nicely done!
<OkuTooltipArrow class="arrowClass" :offset="10" />
</OkuTooltipContent>
</OkuTooltipPortal>
</OkuTooltip>
</OkuTooltipProvider>
</template>
Loading

0 comments on commit 776e8e2

Please sign in to comment.