@empathyco/x-components
Version:
Empathy X Components
25 lines (22 loc) • 960 B
JavaScript
import _sfc_main from './base-keyboard-navigation.vue2.js';
import { openBlock, createElementBlock, withKeys, withModifiers, renderSlot } from 'vue';
import _export_sfc from '../_virtual/_plugin-vue_export-helper.js';
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock(
"div",
{
ref: "el",
class: "x-keyboard-navigation",
"data-test": "keyboard-navigation",
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers((...args) => _ctx.focusNextNavigableElement && _ctx.focusNextNavigableElement(...args), ["prevent"]), ["up", "down", "right", "left"]))
},
[
renderSlot(_ctx.$slots, "default")
],
544
/* NEED_HYDRATION, NEED_PATCH */
);
}
var baseKeyboardNavigation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export { baseKeyboardNavigation as default };
//# sourceMappingURL=base-keyboard-navigation.vue.js.map