Skip to content

Commit 4646ad1

Browse files
authored
fix(web) ListItem in advanced example should be List.Item (#1347)
fix(web) list item in advanced example witch should be List.Item
1 parent a3d282b commit 4646ad1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/web/examples/list/list.advanced.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { List, Avatar } from "flowbite-react";
99
function Component() {
1010
return (
1111
<List unstyled className="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
12-
<ListItem className="pb-3 sm:pb-4">
12+
<List.Item className="pb-3 sm:pb-4">
1313
<div className="flex items-center space-x-4 rtl:space-x-reverse">
1414
<Avatar img="/images/people/profile-picture-1.jpg" alt="Neil image" rounded size="sm" />
1515
<div className="min-w-0 flex-1">
@@ -18,8 +18,8 @@ function Component() {
1818
</div>
1919
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$320</div>
2020
</div>
21-
</ListItem>
22-
<ListItem className="py-3 sm:py-4">
21+
</List.Item>
22+
<List.Item className="py-3 sm:py-4">
2323
<div className="flex items-center space-x-4 rtl:space-x-reverse">
2424
<Avatar img="/images/people/profile-picture-3.jpg" alt="Neil image" rounded size="sm" />
2525
<div className="min-w-0 flex-1">
@@ -28,8 +28,8 @@ function Component() {
2828
</div>
2929
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$3467</div>
3030
</div>
31-
</ListItem>
32-
<ListItem className="py-3 sm:py-4">
31+
</List.Item>
32+
<List.Item className="py-3 sm:py-4">
3333
<div className="flex items-center space-x-4 rtl:space-x-reverse">
3434
<Avatar img="/images/people/profile-picture-2.jpg" alt="Neil image" rounded size="sm" />
3535
<div className="min-w-0 flex-1">
@@ -38,8 +38,8 @@ function Component() {
3838
</div>
3939
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$67</div>
4040
</div>
41-
</ListItem>
42-
<ListItem className="py-3 sm:py-4">
41+
</List.Item>
42+
<List.Item className="py-3 sm:py-4">
4343
<div className="flex items-center space-x-4 rtl:space-x-reverse">
4444
<Avatar img="/images/people/profile-picture-5.jpg" alt="Neil image" rounded size="sm" />
4545
<div className="min-w-0 flex-1">
@@ -48,8 +48,8 @@ function Component() {
4848
</div>
4949
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$2367</div>
5050
</div>
51-
</ListItem>
52-
<ListItem className="pb-0 pt-3 sm:pt-4">
51+
</List.Item>
52+
<List.Item className="pb-0 pt-3 sm:pt-4">
5353
<div className="flex items-center space-x-4 rtl:space-x-reverse">
5454
<Avatar img="/images/people/profile-picture-4.jpg" alt="Neil image" rounded size="sm" />
5555
<div className="min-w-0 flex-1">
@@ -58,7 +58,7 @@ function Component() {
5858
</div>
5959
<div className="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">$367</div>
6060
</div>
61-
</ListItem>
61+
</List.Item>
6262
</List>
6363
);
6464
}

0 commit comments

Comments
 (0)