@anoki/fse-ui
Version:
FSE UI components library
25 lines (24 loc) • 1.01 kB
JavaScript
import { j as e } from "./index.es244.js";
import './components/ui/EditorialWidget/EditorialWidget.css';/* empty css */
import { clsx as l } from "./index.es246.js";
import { Section as r } from "./index.es54.js";
import { Col as c } from "./index.es10.js";
var m = /* @__PURE__ */ ((s) => (s.LIGHT = "light", s.EVIDENCE = "evidence", s.DEFAULT = "default", s))(m || {});
function f({
title: s,
children: o,
subtitle: t,
variant: i = "default"
/* DEFAULT */
}) {
return /* @__PURE__ */ e.jsx(r, { className: l("editorial-widget", i), children: /* @__PURE__ */ e.jsxs(c, { className: "", children: [
s && /* @__PURE__ */ e.jsx(r.Title, { fs: "3", className: "title", mdFs: "3", children: s }),
t && /* @__PURE__ */ e.jsx("div", { className: "subtitle", children: t }),
o && /* @__PURE__ */ e.jsx(r.Description, { color: "transparent", children: o })
] }) });
}
export {
f as EditorialWidget,
m as EditorialWidgetVariantEnum
};
//# sourceMappingURL=index.es113.js.map