Installation
Usage
import AvatarBasic from "@/components/ruixen/avatar-basic";
export default function MyAvatar() {
return (
<AvatarBasic src="https://github.com/shadcn.png" alt="User" fallback="CN" />
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | "https://github.com/shadcn.png" | The image source URL |
alt | string | "User" | Alt text for the avatar image |
fallback | string | "U" | Fallback text when image fails |
className | string | - | Additional CSS classes |

