UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

39 lines (38 loc) 1.08 kB
import { BUTTON_GROUP_ALIGNMENT } from "./button_group_constants.js"; import { openBlock, createElementBlock, normalizeClass, renderSlot } from "vue"; import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js"; const _sfc_main = { compatConfig: { MODE: 3 }, name: "DtButtonGroup", props: { /** * Alignment of the buttons inside the container */ alignment: { type: String, default: "start", validator: (alignment) => Object.keys(BUTTON_GROUP_ALIGNMENT).includes(alignment) } }, data() { return { BUTTON_GROUP_ALIGNMENT }; } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", { class: normalizeClass([ "d-btn-group", $data.BUTTON_GROUP_ALIGNMENT[$props.alignment] ]), role: "group" }, [ renderSlot(_ctx.$slots, "default") ], 2); } const button_group = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { button_group as default }; //# sourceMappingURL=button_group.vue.js.map