About
Displays a masked image when src is passed, with initials or icon fallbacks when the image is not available. Supports color tokens with a faded variant, any numeric size with automatic typography scaling, and a squared shape.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Reshaped Avatar to your project and fits it to your theme.
Code
How Reshaped Avatar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Reshaped, View } from "reshaped/bundle";
import Avatar from "@/components/ui/reshaped-avatar";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
<View direction="row" gap={3}>
<Avatar size={8} initials="RS" color="neutral" />
<Avatar size={12} initials="RS" color="neutral" />
<Avatar size={16} initials="RS" color="neutral" />
</View>
</div>
</Reshaped>
);
}







