UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

38 lines (37 loc) 1.23 kB
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, renderSlot } from "vue"; import { TabGroup, TabList } from "@headlessui/vue"; import { ScalarCardHeader } from "@scalar/components"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "ExampleResponseTabList", emits: ["change"], setup(__props, { emit: __emit }) { const emit = __emit; const changeTab = (index) => { emit("change", index); }; return (_ctx, _cache) => { return openBlock(), createBlock(unref(ScalarCardHeader), { class: "scalar-card-header scalar-card-header-tabs" }, { actions: withCtx(() => [ renderSlot(_ctx.$slots, "actions", {}, void 0, true) ]), default: withCtx(() => [ createVNode(unref(TabGroup), { onChange: changeTab }, { default: withCtx(() => [ createVNode(unref(TabList), { class: "tab-list custom-scroll" }, { default: withCtx(() => [ renderSlot(_ctx.$slots, "default", {}, void 0, true) ]), _: 3 }) ]), _: 3 }) ]), _: 3 }); }; } }); export { _sfc_main as default };