Home / Function/ EmptyAvatarGroup() — ui Function Reference

EmptyAvatarGroup() — ui Function Reference

Architecture documentation for the EmptyAvatarGroup() function in preview.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b6321a6b_5c72_49bd_8036_42b8fafd8ca2["EmptyAvatarGroup()"]
  f02a92c6_0fdc_9231_5419_752092d638ff["preview.tsx"]
  b6321a6b_5c72_49bd_8036_42b8fafd8ca2 -->|defined in| f02a92c6_0fdc_9231_5419_752092d638ff
  style b6321a6b_5c72_49bd_8036_42b8fafd8ca2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/blocks/preview.tsx lines 874–963

function EmptyAvatarGroup() {
  return (
    <Example title="Empty">
      <Empty className="h-full flex-none border">
        <EmptyHeader>
          <EmptyMedia>
            <AvatarGroup className="grayscale">
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/shadcn.png"
                  alt="@shadcn"
                />
                <AvatarFallback>CN</AvatarFallback>
              </Avatar>
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/maxleiter.png"
                  alt="@maxleiter"
                />
                <AvatarFallback>LR</AvatarFallback>
              </Avatar>
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/evilrabbit.png"
                  alt="@evilrabbit"
                />
                <AvatarFallback>ER</AvatarFallback>
              </Avatar>
            </AvatarGroup>
          </EmptyMedia>
          <EmptyTitle>No Team Members</EmptyTitle>
          <EmptyDescription>
            Invite your team to collaborate on this project.
          </EmptyDescription>
        </EmptyHeader>
        <EmptyContent>
          <div className="flex gap-2">
            <AlertDialog>
              <AlertDialogTrigger render={<Button variant="outline" />}>
                Show Dialog
              </AlertDialogTrigger>
              <AlertDialogContent>
                <AlertDialogHeader>
                  <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
                  <AlertDialogDescription>
                    This action cannot be undone. This will permanently delete
                    your account and remove your data from our servers.
                  </AlertDialogDescription>
                </AlertDialogHeader>
                <AlertDialogFooter>
                  <AlertDialogCancel>Cancel</AlertDialogCancel>
                  <AlertDialogAction>Continue</AlertDialogAction>
                </AlertDialogFooter>
              </AlertDialogContent>
            </AlertDialog>
            <AlertDialog>
              <AlertDialogTrigger render={<Button />}>
                Connect Mouse
              </AlertDialogTrigger>
              <AlertDialogContent size="sm">
                <AlertDialogHeader>
                  <AlertDialogMedia>
                    <IconPlaceholder
                      lucide="BluetoothIcon"
                      tabler="IconBluetooth"
                      hugeicons="BluetoothIcon"
                      phosphor="BluetoothIcon"
                      remixicon="RiBluetoothLine"
                    />
                  </AlertDialogMedia>
                  <AlertDialogTitle>
                    Allow accessory to connect?
                  </AlertDialogTitle>
                  <AlertDialogDescription>
                    Do you want to allow the USB accessory to connect to this
                    device?
                  </AlertDialogDescription>
                </AlertDialogHeader>
                <AlertDialogFooter>
                  <AlertDialogCancel>Don&apos;t allow</AlertDialogCancel>
                  <AlertDialogAction>Allow</AlertDialogAction>

Subdomains

Frequently Asked Questions

What does EmptyAvatarGroup() do?
EmptyAvatarGroup() is a function in the ui codebase, defined in apps/v4/registry/bases/base/blocks/preview.tsx.
Where is EmptyAvatarGroup() defined?
EmptyAvatarGroup() is defined in apps/v4/registry/bases/base/blocks/preview.tsx at line 874.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free