pnpm dlx dreamy add avatarAvatar is a component that displays a user's profile picture without blocking navigation to load the image.
G
<Avatar src="/olcia.webp" name="Girlfriend" />You can set the size of the avatar by using the size prop.
G
G
G
<HStack>
<Avatar size="sm" src="/olcia.webp" name="Girlfriend" />
<Avatar size="md" src="/olcia.webp" name="Girlfriend" />
<Avatar size="lg" src="/olcia.webp" name="Girlfriend" />
</HStack>AvatarGroup is a wrapper around Avatars that displays a number of avatars grouped together in a stack.
Use maxAvatars prop to limit the number of avatars displayed.
+4
D
D
D
D
<AvatarGroup maxAvatars={4}>
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
<Avatar name="Dream" />
</AvatarGroup>Using more Dreamy UI components, you can create a nice looking persona component.
A
Alexandra
Dream
<HStack>
<Avatar src="/olcia.webp" size="md" name="Alexandra" />
<Flex col>
<Text size="sm" fontWeight="medium">
Alexandra
</Text>
<Text size="sm" color="fg.medium">
Dream
</Text>
</Flex>
</HStack>