@scalar/api-reference
Version:
Generate beautiful API references from OpenAPI documents
30 lines (29 loc) • 816 B
JavaScript
import { defineComponent as r, createElementBlock as c, openBlock as a, createTextVNode as i, createVNode as s, unref as l } from "vue";
import { ScalarIconCaretDown as m } from "@scalar/icons";
import { useSidebar as d } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
const S = /* @__PURE__ */ r({
__name: "ShowMoreButton",
props: {
id: {},
onShowMore: { type: Function }
},
setup(e) {
const { setCollapsedSidebarItem: t } = d(), n = () => {
t(e.id, !0), e.onShowMore?.(e.id);
};
return (u, o) => (a(), c("button", {
class: "show-more",
type: "button",
onClick: n
}, [
o[0] || (o[0] = i(" Show More ")),
s(l(m), {
class: "text-c-2 mt-0.25 size-3",
weight: "bold"
})
]));
}
});
export {
S as default
};