Getting Started
Foundations
Components
Search for a command to run...
Avatars are compact, circular (or rounded) components that represent users, teams, or other entities throughout an interface. They automatically handle image loading states and provide accessible fallback content such as initials or icons when images fail to load or are unavailable. Avatars help users quickly identify people or entities in lists, headers, comments, and other interface elements.
Use avatars to add a personal touch to user interfaces and make it easier to scan and identify content associated with specific users or entities. Avatars should maintain consistent sizing within the same context to create visual harmony, though different sizes may be appropriate for different interface areas such as navigation bars versus detailed profile views.
import { Avatar } from "@strongtie/design-system/avatar"This module exports the following components:
AvatarAvatarImageAvatarFallbackAll components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
avataravatar-fallbackavatar-imageEnsure proper accessibility attributes are added when implementing this component.