Components
Loading preview...
A unique gradient avatar generated from a name string.
npx shadcn@latest add https://21st.dev/r/tom_ui/fallback-avatar"use client";
import FallbackAvatar from "@/components/ui/fallback-avatar";
const sizes = [32, 48, 64, 96, 128];
function Demo() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
<div className="flex items-end gap-6 rounded-3xl border bg-card/70 p-8 shadow-sm backdrop-blur">
{sizes.map((size) => (
<div key={size} className="flex flex-col items-center gap-2">
<FallbackAvatar className="border shadow-sm" name="spell" size={size} />
<span className="text-[11px] text-muted-foreground">{size}px</span>
</div>
))}
</div>
</div>
);
}
export default { Demo };