UNPKG

@empathyco/x-components

Version:
27 lines (24 loc) 991 B
import _sfc_main from './base-switch.vue2.js'; import { openBlock, createElementBlock, normalizeClass, createElementVNode } from 'vue'; import './base-switch.vue3.js'; import _export_sfc from '../_virtual/_plugin-vue_export-helper.js'; const _hoisted_1 = ["aria-checked"]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("button", { "aria-checked": _ctx.modelValue || void 0, class: normalizeClass([_ctx.cssClasses, "x-switch"]), role: "switch", onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args)) }, [..._cache[1] || (_cache[1] = [ createElementVNode( "div", { class: "x-switch__handle" }, null, -1 /* CACHED */ ) ])], 10, _hoisted_1); } var BaseSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3ae6056b"]]); export { BaseSwitch as default }; //# sourceMappingURL=base-switch.vue.js.map