Join our Discord Community
Avatar/Standard

React Avatar with Offline Indicator

A circular avatar with a gray presence indicator badge showing offline or away status for inactive users

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Not everyone is online all the time—and showing offline status is just as important as online. This React avatar adds a gray bg-gray-400 presence indicator positioned at bottom-right, following the same pattern as online indicators but with subdued color. Built with shadcn/ui and Radix UI, the border-background styling creates clean separation from the avatar. Perfect for chat applications showing inactive users, team directories with mixed presence states, or any interface where distinguishing between active and inactive members matters.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-5.json
npx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-5.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-5.json
bunx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-5.json

Questions you might have