@ark-ui/vue
Version:
A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.
21 lines (18 loc) • 684 B
JavaScript
import { defineComponent, createBlock, openBlock, unref, mergeProps } from 'vue';
import { ark } from '../factory.js';
import { useMenuContext } from './use-menu-context.js';
import { useForwardExpose } from '../../utils/use-forward-expose.js';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "menu-separator",
props: {
asChild: { type: Boolean }
},
setup(__props) {
const menu = useMenuContext();
useForwardExpose();
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(ark).hr, mergeProps(unref(menu).getSeparatorProps(), { "as-child": _ctx.asChild }), null, 16, ["as-child"]);
};
}
});
export { _sfc_main as default };