Comments (1)
Hi @Theo-Rige,
This is largely a documentation problem. Here's the snippet that should work:
<script setup>
import * as popover from "@zag-js/popover"
import { normalizeProps, useMachine } from "@zag-js/vue"
import { computed, Teleport, Fragment } from "vue"
const [state, send] = useMachine(popover.machine({ id: "1" }))
const api = computed(() => popover.connect(state.value, send, normalizeProps))
</script>
<template>
<div ref="ref">
<button v-bind="api.triggerProps">Click me</button>
<Teleport to="body" :disabled="!api.portalled">
<div v-bind="api.positionerProps">
<div v-bind="api.contentProps">
<div v-bind="api.titleProps">Presenters</div>
<div v-bind="api.descriptionProps">Description</div>
<button>Action Button</button>
<button v-bind="api.closeTriggerProps">X</button>
</div>
</div>
</Teleport>
</div>
</template>
from zag.
Related Issues (20)
- String literal types in `select` machine values
- Popper elements: Cross-axis in `placement` serves no purpose HOT 1
- Tags Input: Pasting text on `TagsInput` breaks functionality HOT 2
- [CircularProgress Indeterminate state] when value: null, it throws errors HOT 1
- Replace `klona/full` to solve the "Maximum call stack size exceeded" issue in Vue 2.7 HOT 4
- [Circular progress] circle diameter is not correct with --size variable HOT 2
- Select: hidden select is being set to disabled when readOnly attribute is set HOT 1
- No Documentation for the Presence component
- [Number Input] Issue - SolidJS max breaks when setting value to max HOT 3
- `data-acitve` is not deactivated if the mouse button is released on outside of its element HOT 2
- Bug: Accordion / Collapsible - Items animate on initial render / flicker in page reload
- [Combobox] Focus input on mount HOT 2
- multi-selectable Select and Combobox value is unintentionally sorted when opening the listbox
- No 'Visualize Logic' for Presence
- MenuItem is not processable with enter key when not Link element HOT 3
- [React][Carousel] Next / Prev triggers not respecting slidesPerView with loop HOT 3
- Cannot pass JSX to `toast.create` HOT 7
- List component
- Timer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zag.