UNPKG

@anoki/fse-ui

Version:

FSE UI components library

30 lines (29 loc) 722 B
import { j as s } from "./index.es244.js"; import { createColorClasses as l } from "./index.es274.js"; import { clsx as x } from "./index.es246.js"; const p = ({ initials: e, bg: r, textColor: t, size: o = "2", className: a }) => { const n = l({ bg: r, text: t }), c = x( "rounded-full base-row justify-content-center align-items-center p-x4", { 1: "w-x64 h-x64 fs-5", 2: "w-x48 h-x48 fs-6", 3: "w-x32 h-x32 fs-7" }[o], n, a ); return /* @__PURE__ */ s.jsx("div", { className: c, "aria-hidden": "true", children: /* @__PURE__ */ s.jsx("span", { className: "fw-semibold", children: e }) }); }; export { p as Avatar }; //# sourceMappingURL=index.es64.js.map