@llamaindex/ui
Version:
A comprehensive UI component library built with React, TypeScript, and Tailwind CSS for LlamaIndex applications
56 lines (53 loc) • 1.3 kB
JavaScript
import { cn } from './chunk-MG2ARK3A.mjs';
import { __objRest, __spreadValues } from './chunk-FWCSY2DS.mjs';
import * as AvatarPrimitive from '@radix-ui/react-avatar';
import { jsx } from 'react/jsx-runtime';
function Avatar(_a) {
var _b = _a, {
className
} = _b, props = __objRest(_b, [
"className"
]);
return /* @__PURE__ */ jsx(
AvatarPrimitive.Root,
__spreadValues({
"data-slot": "avatar",
className: cn(
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
className
)
}, props)
);
}
function AvatarImage(_a) {
var _b = _a, {
className
} = _b, props = __objRest(_b, [
"className"
]);
return /* @__PURE__ */ jsx(
AvatarPrimitive.Image,
__spreadValues({
"data-slot": "avatar-image",
className: cn("aspect-square size-full", className)
}, props)
);
}
function AvatarFallback(_a) {
var _b = _a, {
className
} = _b, props = __objRest(_b, [
"className"
]);
return /* @__PURE__ */ jsx(
AvatarPrimitive.Fallback,
__spreadValues({
"data-slot": "avatar-fallback",
className: cn(
"bg-muted flex size-full items-center justify-center rounded-full",
className
)
}, props)
);
}
export { Avatar, AvatarFallback, AvatarImage };