This commit is contained in:
2026-04-23 18:17:17 +08:00
parent 3a7b48e483
commit 9890864e5c
76 changed files with 1096 additions and 1631 deletions

View File

@@ -0,0 +1,20 @@
import * as BUI from "@base-ui/react";
type AvatarPorps = {
size?: "sm" | "md" | "lg";
src?: string;
alt?: string;
};
export const Avatar = (props: AvatarPorps) => {
const { size = "md", src, alt } = props;
return (
<BUI.Avatar.Root>
<BUI.Avatar.Image src={src} alt={alt} />
<BUI.Avatar.Fallback></BUI.Avatar.Fallback>
</BUI.Avatar.Root>
);
};