shadcn.io is not affiliated with official shadcn/ui
Avatar examples · Square
Avatar with Offline Indicator (Square) for React
A square avatar with a gray dot at the bottom corner showing it is offline.
On a square avatar, a gray dot says a system is down or disconnected, not that a person stepped away. This React avatar uses rounded-lg on the avatar, its image and its fallback, and adds an AvatarBadge with bg-muted-foreground and a visually hidden Offline label. Use it for integrations, workspaces or services that aren't connected.
Preview
Installation
FAQ
How is the square avatar set up?
rounded-lg goes on Avatar, AvatarImage, and AvatarFallback, plus after:rounded-lg on Avatar for the border. The status dot stays circular.
How is the offline dot made?
AvatarBadge has bg-muted-foreground and sits on the bottom end corner with a ring. The muted token follows the theme.
What names the dot for assistive tech?
A visually hidden "Offline" inside AvatarBadge. The icon slot is empty, so that text is the whole label.
What shows when there is no photo?
AvatarFallback shows CN with the same rounded-lg. AvatarImage still has alt and a 32 by 32 size for when the photo loads.
Related
- Avatar with Online Indicator (Square)A square avatar with a green dot at the
- Avatar with Offline Indicator (Standard)A round avatar with a gray dot at the
- Avatar SquareA square avatar with a profile picture
- Avatar with Count Indicator (Square)A square avatar with a red count of
- Avatar with Placeholder Icon (Square)A square avatar with no picture that
- Avatar with Placeholder Initials (Square)A square avatar with no picture that