Avatar
Ce contenu n’est pas encore disponible dans votre langue.
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 |
— |
Example
Section titled “Example”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>);