{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/table-13","type":"registry:component","title":"Table 13","description":"A table with avatar components for displaying user information with profile pictures","registryDependencies":["avatar","table"],"files":[{"path":"src/registry/new-york/components/table/table-13.tsx","content":"import { Avatar, AvatarFallback, AvatarImage } from '@/registry/new-york/ui/avatar'\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/registry/new-york/ui/table'\n\nconst items = [\n  {\n    id: '1',\n    name: 'Philip George',\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-1.png',\n    fallback: 'PG',\n    email: 'philipgeorge20@gmail.com',\n    location: 'Mumbai, India',\n    status: 'Active',\n    balance: '$10,696.00'\n  },\n  {\n    id: '2',\n    name: 'Tiana Curtis',\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-2.png',\n    fallback: 'TC',\n    email: 'tiana12@yahoo.com',\n    location: 'New York, US',\n    status: 'applied',\n    balance: '$0.00'\n  },\n  {\n    id: '3',\n    name: 'Jaylon Donin',\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-3.png',\n    fallback: 'JD',\n    email: 'jaylon23d.@outlook.com',\n    location: 'Washington, US',\n    status: 'Active',\n    balance: '$569.00'\n  },\n  {\n    id: '4',\n    name: 'Kim Yim',\n    src: 'https://cdn.shadcnstudio.com/ss-assets/avatar/avatar-4.png',\n    fallback: 'KY',\n    email: 'kim96@gmail.com',\n    location: 'Busan, South Korea',\n    status: 'Inactive',\n    balance: '-$506.90'\n  }\n]\n\nconst TableWithAvatarDemo = () => {\n  return (\n    <div className='w-full'>\n      <div className='[&>div]:rounded-sm [&>div]:border'>\n        <Table>\n          <TableHeader>\n            <TableRow className='hover:bg-transparent'>\n              <TableHead>Name</TableHead>\n              <TableHead>Email</TableHead>\n              <TableHead>Location</TableHead>\n              <TableHead>Status</TableHead>\n              <TableHead className='text-right'>Balance</TableHead>\n            </TableRow>\n          </TableHeader>\n          <TableBody>\n            {items.map(item => (\n              <TableRow key={item.id}>\n                <TableCell>\n                  <div className='flex items-center gap-3'>\n                    <Avatar>\n                      <AvatarImage src={item.src} alt={item.fallback} />\n                      <AvatarFallback className='text-xs'>{item.fallback}</AvatarFallback>\n                    </Avatar>\n                    <div className='font-medium'>{item.name}</div>\n                  </div>\n                </TableCell>\n                <TableCell>{item.email}</TableCell>\n                <TableCell>{item.location}</TableCell>\n                <TableCell>{item.status}</TableCell>\n                <TableCell className='text-right'>{item.balance}</TableCell>\n              </TableRow>\n            ))}\n          </TableBody>\n        </Table>\n      </div>\n      <p className='text-muted-foreground mt-4 text-center text-sm'>Table with avatar</p>\n    </div>\n  )\n}\n\nexport default TableWithAvatarDemo\n","type":"registry:component","target":"components/shadcn-studio/table/table-13.tsx"}]}