UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

45 lines (44 loc) 1.46 kB
import { n } from "../../_plugin-vue2_normalizer-DSLOjnn3.js"; const i = { name: "DtNoticeContent", props: { /** * Title header of the notice. This can be left blank to remove the title from the notice entirely. */ title: { type: String, default: "" }, /** * ID for the title element of the component. Useful for aria-describedby * or aria-labelledby or any other reason you may need an id to refer to the title. */ titleId: { type: String, default: void 0 }, /** * ID for the content element of the component. Useful for aria-describedby * or aria-labelledby or any other reason you may need an id to refer to the content. */ contentId: { type: String, default: void 0 } } }; var a = function() { var t = this, e = t._self._c; return e("div", { staticClass: "d-notice__content", attrs: { "data-qa": "notice-content" } }, [t.title || t.$slots.titleOverride ? e("p", { staticClass: "d-notice__title", attrs: { id: t.titleId, "data-qa": "notice-content-title" } }, [t._t("titleOverride", function() { return [t._v(" " + t._s(t.title) + " ")]; })], 2) : t._e(), e("p", { staticClass: "d-notice__message", attrs: { id: t.contentId, "data-qa": "notice-content-message" } }, [t._t("default")], 2)]); }, s = [], o = /* @__PURE__ */ n( i, a, s ); const d = o.exports; export { d as default }; //# sourceMappingURL=notice-content.js.map