-
Can someone share a snippet on how to properly use Popover with Vue? (The docs doesn't have it for this particular component) I wonder if it would be possible to open the Popover by listening to Thanks community :) |
Beta Was this translation helpful? Give feedback.
Answered by
anubra266
Apr 27, 2023
Replies: 2 comments 2 replies
-
Hey @Extarys Thanks for reaching out. Try this snippet and let me know : <script setup lang="ts">
import {
Popover,
PopoverArrow,
PopoverArrowTip,
PopoverCloseTrigger,
PopoverContent,
PopoverDescription,
PopoverPositioner,
PopoverTitle,
PopoverTrigger,
} from '@ark-ui/vue'
</script>
<template>
<Popover>
<PopoverTrigger>
<button>click me</button>
</PopoverTrigger>
<PopoverPositioner>
<PopoverArrow>
<PopoverArrowTip />
</PopoverArrow>
<PopoverContent>
<PopoverTitle>Title</PopoverTitle>
<PopoverDescription>Description</PopoverDescription>
<input type="text" />
<PopoverCloseTrigger>
<button>close</button>
</PopoverCloseTrigger>
</PopoverContent>
</PopoverPositioner>
</Popover>
</template> |
Beta Was this translation helpful? Give feedback.
2 replies
-
@Extarys You can play around with it here |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Shyrro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Extarys You can play around with it here
https://arkxamples.vercel.app/popover