geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
28 lines (27 loc) • 680 B
JavaScript
import { Avatar as n, AvatarImage as i, AvatarFallback as v } from "./index.es5.js";
import e from "react";
function f({
imageSrc: r,
alt: a,
size: t = "sm",
fallback: c,
fallbackProps: o,
imageProps: m,
avatarProps: l,
id: s
}) {
return /* @__PURE__ */ e.createElement(
n,
{
id: s,
className: `border hover:bg-hover-s1 active:bg-click-s1 focus:bg-click-s1 cursor-pointer border-neutral-1 ${t === "sm" ? "h-8 w-8" : "h-10 w-10"}`,
...l
},
/* @__PURE__ */ e.createElement(i, { src: r, alt: a, ...m }),
/* @__PURE__ */ e.createElement(v, { ...o }, c)
);
}
export {
f as AvatarDemo
};
//# sourceMappingURL=index.es4.js.map