UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

39 lines (38 loc) 999 B
import { BUTTON_GROUP_ALIGNMENT } from "./button_group_constants.js"; import normalizeComponent from "../../_virtual/_plugin-vue2_normalizer.js"; const _sfc_main = { 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 }; } }; var _sfc_render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { class: [ "d-btn-group", _vm.BUTTON_GROUP_ALIGNMENT[_vm.alignment] ], attrs: { "role": "group" } }, [_vm._t("default")], 2); }; var _sfc_staticRenderFns = []; var __component__ = /* @__PURE__ */ normalizeComponent( _sfc_main, _sfc_render, _sfc_staticRenderFns ); const button_group = __component__.exports; export { button_group as default }; //# sourceMappingURL=button_group.vue.js.map