UNPKG

@anoki/fse-ui

Version:

FSE UI components library

35 lines (34 loc) 1.11 kB
import { j as s } from "./index.es244.js"; import './sections/Insights/Insights.css';/* empty css */ import { CardPreview as o } from "./index.es120.js"; import { Section as e } from "./index.es54.js"; const d = ({ title: t, items: i = [], colorTitle: r = "slate-20", showBackgroundRectangle: l = !0 }) => /* @__PURE__ */ s.jsxs(e, { className: "ui-insights-section", children: [ l && /* @__PURE__ */ s.jsx("div", { className: "ui-insights-background-rectangle" }), /* @__PURE__ */ s.jsx("div", { className: "ui-insights-items-section-title", children: /* @__PURE__ */ s.jsx( e.Title, { className: "ui-insights-items-section-title", as: "h1", color: r, children: t } ) }), /* @__PURE__ */ s.jsx( "ul", { role: "list", "aria-label": `Lista di ${t}`, className: "list-style-none ui-insights-items-layout", children: i == null ? void 0 : i.map((n, a) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(o, { ...n }) }, a)) } ) ] }); export { d as Insights }; //# sourceMappingURL=index.es147.js.map