@antadesign/anta
    Preparing search index...

    Function AvatarUnreviewed

    • Avatar — a userpic container. Shows a supplied image, a seed-generated placeholder figure, or initials, in that priority order.

      Renders an <a-avatar> web component. Generation runs in avatar-core; pass a generator config to cap the space to your brand (see the color and dimension options on AvatarGenConfig). With no generator, a varied figure is drawn; a config whose head and body shapes are both off renders initials instead.

      Requires @antadesign/anta/elements to be imported (client-side only) to register the underlying custom element.

      Parameters

      Returns any

      import { Avatar } from '@antadesign/anta'
      import '@antadesign/anta/elements'

      <Avatar seed="user-42" name="Vlad Korobov" />
      <Avatar src="/vlad.jpg" name="Vlad Korobov" badge="success" />
      
      <Avatar
      name="Vlad Korobov"
      generator={{ headRadiusTop: { mode: 'off' }, headRadiusBottom: { mode: 'off' }, bodyBorderRadius: { mode: 'off' } }}
      />