Simal UI
Components

AvatarAndText

Import

import { AvatarAndText } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
avatarUrlImage source. Falls back to fallbackText when absent or when the fetch fails.
title"Person name"Primary line, at body size.
subtitle"Supporting line · Detail"Secondary line, at footnote size and muted. Omit it and the title centres against the avatar.
fallbackText"ST"Initials shown when there is no image. Two characters — more will clip.

Examples

Initials Fallback

With no avatarUrl, the initials in fallbackText carry the slot.

In A List

On this page