UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

15 lines (14 loc) 730 B
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs"); const require_clean_props = require("../../utils/clean-props.cjs"); let vue = require("vue"); let _zag_js_vue = require("@zag-js/vue"); let _zag_js_async_list = require("@zag-js/async-list"); _zag_js_async_list = require_runtime.__toESM(_zag_js_async_list, 1); //#region src/components/collection/use-async-list.ts var useAsyncList = (props = {}) => { const context = (0, vue.computed)(() => require_clean_props.cleanProps((0, vue.toValue)(props))); const service = (0, _zag_js_vue.useMachine)(_zag_js_async_list.machine, context); return (0, vue.computed)(() => _zag_js_async_list.connect(service)); }; //#endregion exports.useAsyncList = useAsyncList;