콘텐츠로 이동

Avatar

이 콘텐츠는 아직 번역되지 않았습니다.

Stands for a person or a team by their initials.

The frame above shows the real web components, in the mode this site is in.

The design preview shows it next to every other web component.

  • Assistive technology gets the full name. The small size has room for one letter.
import { Avatar } from "@acme/ui";
<Avatar name="Ada Lovelace" />

The web component’s props. The other platforms take the same options under their own naming conventions.

Prop Type Notes
name string Required.
size "sm" | "md" | "lg" Defaults to md.
Platform File
Web (React) packages/ui/src/Avatar.tsx
Desktop (GPUI) crates/acme-ui/src/controls.rs
React Native packages/ui-native/src/Avatar.tsx
Compose Multiplatform kotlin/ui/src/commonMain/kotlin/acme/ui/Avatar.kt