@@ -52,7 +52,7 @@ This example can be used to apply custom icons instead of the default bullets fo
52
52
</script>
53
53
54
54
<Heading tag="h2" customSize="text-lg font-semibold" class="mb-2 text-lg font-semibold text-gray-900 dark:text-white">Password requirements</Heading>
55
- <List tag="ul" class="space-y-1 text-gray-500 dark:text-gray-400" list="none" >
55
+ <List tag="ul" class="space-y-1 text-gray-500 dark:text-gray-400">
56
56
<Li icon>
57
57
<CheckCircleSolid class="me-2 h-5 w-5 text-green-500 dark:text-green-400" />
58
58
At least 10 characters (and up to 100 characters)
@@ -107,15 +107,15 @@ Use this example to nested another list of items inside the parent list element.
107
107
108
108
### Unstyled
109
109
110
- Use the ` list="none "` prop to disable the list style bullets or numbers.
110
+ Use the ` tag="dl "` prop to disable the list style bullets or numbers.
111
111
112
112
``` svelte example
113
113
<script>
114
114
import { List, Li, Heading } from "flowbite-svelte";
115
115
</script>
116
116
117
117
<Heading tag="h2" customSize="text-lg font-semibold" class="mb-2 text-lg font-semibold text-gray-900 dark:text-white">Password requirements</Heading>
118
- <List tag="ul " class="space-y-1 text-gray-500 dark:text-gray-400" list="none ">
118
+ <List tag="dl " class="space-y-1 text-gray-500 dark:text-gray-400">
119
119
<Li>At least 10 characters (and up to 100 characters)</Li>
120
120
<Li>At least one lowercase character</Li>
121
121
<Li>Inclusion of at least one special character, e.g., ! @ # ?</Li>
@@ -211,7 +211,7 @@ Use this example to create a list of items with custom SVG icons instead of the
211
211
import { CheckOutline } from "flowbite-svelte-icons";
212
212
</script>
213
213
214
- <List tag="ul" class="mb-8 space-y-4 text-gray-500 dark:text-gray-400" list="none" >
214
+ <List tag="ul" class="mb-8 space-y-4 text-gray-500 dark:text-gray-400">
215
215
<Li icon class="gap-3">
216
216
<CheckOutline class="h-5 w-5 text-green-500 dark:text-green-400" />
217
217
Individual configuration
@@ -244,7 +244,7 @@ This example can be used to show more details for each list item such as the use
244
244
import { List, Li } from "flowbite-svelte";
245
245
</script>
246
246
247
- <List tag="ul" list="none " class="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
247
+ <List tag="dl " class="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
248
248
<Li class="pb-3 sm:pb-4">
249
249
<div class="flex items-center space-x-4 rtl:space-x-reverse">
250
250
<div class="shrink-0">
@@ -317,7 +317,7 @@ Use this example to create a horizontally aligned list of items.
317
317
import { List, Li, A } from "flowbite-svelte";
318
318
</script>
319
319
320
- <List tag="ul" list="none " class="mb-6 flex flex-wrap items-center justify-center">
320
+ <List tag="dl " class="mb-6 flex flex-wrap items-center justify-center">
321
321
<Li>
322
322
<A href="/" class="me-4 hover:underline md:me-6" textColor="text-gray-700 dark:text-white">About</A>
323
323
</Li>
0 commit comments