UNPKG

@ark-ui/vue

Version:

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

21 lines (18 loc) 730 B
import { defineComponent, createBlock, openBlock, unref, mergeProps } from 'vue'; import { ark } from '../factory.js'; import { useImageCropperContext } from './use-image-cropper-context.js'; import { useForwardExpose } from '../../utils/use-forward-expose.js'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "image-cropper-image", props: { asChild: { type: Boolean } }, setup(__props) { const imageCropper = useImageCropperContext(); useForwardExpose(); return (_ctx, _cache) => { return openBlock(), createBlock(unref(ark).img, mergeProps(unref(imageCropper).getImageProps(), { "as-child": __props.asChild }), null, 16, ["as-child"]); }; } }); export { _sfc_main as default };