my/ui

Command Palette

Search for a command to run...

All components

Avatar Offline Status

avatars

Origin UI component.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/comp-395.json

Usage

import Cmp from "@/registry/origin-ui/comp-395";

export default function Demo() {
  return <Cmp />;
}

Component source

import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/components/ui/avatar";

export default function Component() {
  return (
    <div className="relative">
      <Avatar>
        <AvatarImage alt="Kelly King" src="/origin/avatar-80-07.jpg" />
        <AvatarFallback>KK</AvatarFallback>
      </Avatar>
      <span className="-end-0.5 -bottom-0.5 absolute size-3 rounded-full border-2 border-background bg-muted-foreground">
        <span className="sr-only">Offline</span>
      </span>
    </div>
  );
}

Source: Origin UI