Zum Inhalt springen

components

Avatar

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

import { Avatar } from "@rebasepro/ui";
Prop Type Required Description
src string —
alt string —
children React.ReactNode —
className string —
outerClassName string —
hover boolean —
style React.CSSProperties —
onClick React.MouseEventHandler<HTMLElement> — Makes the avatar a button. Without it (or a menu trigger’s handlers) it is a plain image.

This is the example the design-system sync renders and verifies for this component.

import { Avatar } from "@rebasepro/ui";
export const Initials = () => (
<div className="flex items-center gap-4 p-4">
<Avatar>A</Avatar>
<Avatar>MJ</Avatar>
<Avatar>RK</Avatar>
</div>
);