UNPKG

@scalar/api-client

Version:

the open source API testing client

24 lines (23 loc) 811 B
import { defineComponent as o, createElementBlock as n, openBlock as r, normalizeClass as s, renderSlot as c } from "vue"; const l = ["aria-controls", "aria-selected", "tabindex"], d = /* @__PURE__ */ o({ __name: "SectionFilterButton", props: { selected: { type: Boolean }, controls: {} }, setup(e) { return (t, a) => (r(), n("button", { "aria-controls": e.controls ?? "", "aria-selected": !!e.selected, class: s(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline", { "text-c-1 pointer-events-none": e.selected }]), role: "tab", tabindex: e.selected ? 0 : -1, type: "button" }, [ c(t.$slots, "default") ], 10, l)); } }); export { d as default };