Skip to content

Avatar

DisplayWeb + NativeMIT
View in Storybook

User avatar with image, fallback initials, and optional status indicator.

bun add @otfdashkit/ui

Preview

Avatar
Loading Storybook preview…

Code

import { Avatar, AvatarFallback, AvatarImage } from '@otfdashkit/ui'

export function Example() {
  return (
    <div className="flex gap-3 items-center">
      <Avatar className="h-8 w-8">
        <AvatarImage src="https://github.com/shadcn.png" alt="shadcn" />
        <AvatarFallback>SC</AvatarFallback>
      </Avatar>
      <Avatar>
        <AvatarFallback>JD</AvatarFallback>
      </Avatar>
      <Avatar className="h-14 w-14">
        <AvatarImage src="https://github.com/vercel.png" alt="Vercel" />
        <AvatarFallback>V</AvatarFallback>
      </Avatar>
    </div>
  )
}

Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.