Skip to content

Commit 27d31b3

Browse files
Rajat ChaudharyRajat Chaudhary
authored andcommitted
fix: avatar
1 parent 0b4f15f commit 27d31b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

example/storybook-nativewind/src/components/Avatar/index.nw.stories.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ An Avatar component with text displays a stylized representation of a user or en
242242
<VStack space="2xl">
243243
<HStack space="md">
244244
<Avatar className='bg-indigo-600'>
245-
<AvatarFallbackText>Ronald Richards</AvatarFallbackText>
246-
<AvatarBadge $dark-borderColor="$black"/>
245+
<AvatarFallbackText className="text-white">Ronald Richards</AvatarFallbackText>
246+
<AvatarBadge />
247247
</Avatar>
248248
<VStack>
249249
<Heading size="sm" >Ronald Richards</Heading>
@@ -252,7 +252,7 @@ An Avatar component with text displays a stylized representation of a user or en
252252
</HStack>
253253
<HStack space="md">
254254
<Avatar className='bg-orange-600'>
255-
<AvatarFallbackText>Arlene McCoy</AvatarFallbackText>
255+
<AvatarFallbackText className="text-white">Arlene McCoy</AvatarFallbackText>
256256
</Avatar>
257257
<VStack>
258258
<Heading size="sm" >Arlene McCoy</Heading>
@@ -294,7 +294,7 @@ An Avatar component with an icon combines a graphical symbol or icon with a user
294294
<HStack space="md">
295295
<Avatar className='bg-indigo-600'>
296296
{/* User is imported from 'lucide-react-native' */}
297-
<Icon as={User} size="lg"/>
297+
<Icon as={User} size="lg" className="stroke-white" />
298298
</Avatar>
299299
<VStack >
300300
<Heading size="sm" >Ronald Richards</Heading>
@@ -304,7 +304,7 @@ An Avatar component with an icon combines a graphical symbol or icon with a user
304304
<HStack space="md">
305305
<Avatar className='bg-pink-600'>
306306
{/* User is imported from 'lucide-react-native' */}
307-
<Icon as={User} size="lg"/>
307+
<Icon as={User} size="lg" className="stroke-white" />
308308
</Avatar>
309309
<VStack >
310310
<Heading size="sm" >Kevin James</Heading>
@@ -422,7 +422,7 @@ The avatar group allows users to group avatars and display them in a horizontal
422422
{avatars.slice(0, 3).map((avatar, index) => {
423423
return (
424424
<Avatar key={index} size="lg" className={'border-2 border-outline-0 ' + avatar.color}>
425-
<AvatarFallbackText>{avatar.alt}</AvatarFallbackText>
425+
<AvatarFallbackText className="text-white">{avatar.alt}</AvatarFallbackText>
426426
</Avatar>
427427
);
428428
})}

0 commit comments

Comments
 (0)