UNPKG

@arolariu/components

Version:

🎨 60+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

29 lines (28 loc) • 991 B
"use client"; import { jsx } from "react/jsx-runtime"; import "react"; import { Fallback, Image, Root } from "@radix-ui/react-avatar"; import { cn } from "../../lib/utils.js"; function Avatar({ className, ...props }) { return /*#__PURE__*/ jsx(Root, { "data-slot": "avatar", className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className), ...props }); } function AvatarImage({ className, ...props }) { return /*#__PURE__*/ jsx(Image, { "data-slot": "avatar-image", className: cn("aspect-square size-full", className), ...props }); } function AvatarFallback({ className, ...props }) { return /*#__PURE__*/ jsx(Fallback, { "data-slot": "avatar-fallback", className: cn("bg-neutral-100 flex size-full items-center justify-center rounded-full dark:bg-neutral-800", className), ...props }); } export { Avatar, AvatarFallback, AvatarImage }; //# sourceMappingURL=avatar.js.map