PHP 8.2.30
Preview: avatar.tsx Size: 961 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/avatar/avatar.tsx

import { MarginProps, space } from 'styled-system'
import { styled } from '@styled-components'

export type AvatarProps = MarginProps & {
  alt?: string
  src?: string
}

export const Avatar = styled.div<AvatarProps>`
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
  font-size: ${({ theme }) => theme.space.lg};
  user-select: none;

  &:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    background-image: url('${({ src }) => src}');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  background-color: ${({ theme }) => theme.colors.primary100};
  color: ${({ theme }) => theme.colors.white};

  ${space}
`

Avatar.displayName = 'Avatar'

export default Avatar

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
699 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download
961 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download
29 B lrw-r--r-- 2026-02-28 00:31:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).