flowbite-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +324 -0
  3. package/build/index.js +975 -0
  4. package/build/server-runner.js +228 -0
  5. package/data/components/accordion.md +860 -0
  6. package/data/components/alerts.md +739 -0
  7. package/data/components/avatar.md +178 -0
  8. package/data/components/badge.md +420 -0
  9. package/data/components/banner.md +145 -0
  10. package/data/components/bottom-navigation.md +513 -0
  11. package/data/components/breadcrumb.md +273 -0
  12. package/data/components/button-group.md +410 -0
  13. package/data/components/buttons.md +405 -0
  14. package/data/components/card.md +711 -0
  15. package/data/components/carousel.md +858 -0
  16. package/data/components/chat-bubble.md +1063 -0
  17. package/data/components/clipboard.md +1029 -0
  18. package/data/components/datepicker.md +673 -0
  19. package/data/components/device-mockups.md +152 -0
  20. package/data/components/drawer.md +1353 -0
  21. package/data/components/dropdowns.md +1925 -0
  22. package/data/components/footer.md +299 -0
  23. package/data/components/forms.md +371 -0
  24. package/data/components/gallery.md +322 -0
  25. package/data/components/indicators.md +262 -0
  26. package/data/components/jumbotron.md +213 -0
  27. package/data/components/kbd.md +217 -0
  28. package/data/components/list-group.md +365 -0
  29. package/data/components/mega-menu.md +558 -0
  30. package/data/components/modal.md +1309 -0
  31. package/data/components/navbar.md +1053 -0
  32. package/data/components/pagination.md +472 -0
  33. package/data/components/popover.md +826 -0
  34. package/data/components/progress.md +95 -0
  35. package/data/components/qr-code.md +280 -0
  36. package/data/components/rating.md +323 -0
  37. package/data/components/sidebar.md +1067 -0
  38. package/data/components/skeleton.md +221 -0
  39. package/data/components/speed-dial.md +1270 -0
  40. package/data/components/spinner.md +222 -0
  41. package/data/components/stepper.md +271 -0
  42. package/data/components/tables.md +3127 -0
  43. package/data/components/tabs.md +808 -0
  44. package/data/components/timeline.md +304 -0
  45. package/data/components/toast.md +341 -0
  46. package/data/components/tooltips.md +524 -0
  47. package/data/components/typography.md +269 -0
  48. package/data/components/video.md +95 -0
  49. package/data/forms/checkbox.md +375 -0
  50. package/data/forms/file-input.md +98 -0
  51. package/data/forms/floating-label.md +185 -0
  52. package/data/forms/input-field.md +222 -0
  53. package/data/forms/number-input.md +1099 -0
  54. package/data/forms/phone-input.md +577 -0
  55. package/data/forms/radio.md +315 -0
  56. package/data/forms/range.md +83 -0
  57. package/data/forms/search-input.md +280 -0
  58. package/data/forms/select.md +259 -0
  59. package/data/forms/textarea.md +155 -0
  60. package/data/forms/timepicker.md +732 -0
  61. package/data/forms/toggle.md +176 -0
  62. package/data/plugins/charts.md +2683 -0
  63. package/data/plugins/datatables.md +1922 -0
  64. package/data/plugins/datepicker.md +5 -0
  65. package/data/plugins/wysiwyg.md +2377 -0
  66. package/data/quickstart.md +169 -0
  67. package/data/theme.md +231 -0
  68. package/data/toc.md +79 -0
  69. package/data/typography/blockquote.md +182 -0
  70. package/data/typography/headings.md +174 -0
  71. package/data/typography/hr.md +74 -0
  72. package/data/typography/images.md +168 -0
  73. package/data/typography/links.md +118 -0
  74. package/data/typography/lists.md +387 -0
  75. package/data/typography/paragraphs.md +186 -0
  76. package/data/typography/text.md +249 -0
  77. package/package.json +71 -0
@@ -0,0 +1,472 @@
1
+ ---
2
+ layout: docs
3
+ title: Tailwind CSS Pagination - Flowbite
4
+ description: Use the Tailwind CSS pagination element to indicate a series of content across various pages based on multiple styles and sizes
5
+ group: components
6
+ toc: true
7
+
8
+ previous: Navbar
9
+ previousLink: components/navbar/
10
+ next: Popover
11
+ nextLink: components/popover/
12
+ ---
13
+
14
+ The pagination component can be used to navigate across a series of content and data sets for various pages such as blog posts, products, and more. You can use multiple variants of this component with or without icons and even for paginating table data entries.
15
+
16
+ ## Default pagination
17
+
18
+ Use the following list of pagination items based on two sizes powered by Tailwind CSS utility classes to indicate a series of content for your website.
19
+
20
+ {{< example class="flex flex-col space-y-6 items-center" github="components/pagination.md" show_dark=true >}}
21
+
22
+ <nav aria-label="Page navigation example">
23
+ <ul class="flex -space-x-px text-sm">
24
+ <li>
25
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-s-base text-sm px-3 h-9 focus:outline-none">Previous</a>
26
+ </li>
27
+ <li>
28
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">1</a>
29
+ </li>
30
+ <li>
31
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">2</a>
32
+ </li>
33
+ <li>
34
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-9 h-9 focus:outline-none">3</a>
35
+ </li>
36
+ <li>
37
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">4</a>
38
+ </li>
39
+ <li>
40
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">5</a>
41
+ </li>
42
+ <li>
43
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-e-base text-sm px-3 h-9 focus:outline-none">Next</a>
44
+ </li>
45
+ </ul>
46
+ </nav>
47
+
48
+ <nav aria-label="Page navigation example">
49
+ <ul class="flex -space-x-px text-sm">
50
+ <li>
51
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-s-base text-sm px-3 h-10 focus:outline-none">Previous</a>
52
+ </li>
53
+ <li>
54
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">1</a>
55
+ </li>
56
+ <li>
57
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">2</a>
58
+ </li>
59
+ <li>
60
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-10 h-10 focus:outline-none">3</a>
61
+ </li>
62
+ <li>
63
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">4</a>
64
+ </li>
65
+ <li>
66
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">5</a>
67
+ </li>
68
+ <li>
69
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-e-base text-sm px-3 h-10 focus:outline-none">Next</a>
70
+ </li>
71
+ </ul>
72
+ </nav>
73
+
74
+ {{< /example >}}
75
+
76
+ ## Pagination with icons
77
+
78
+ The following pagination component example shows how you can use [SVG icons](https://flowbite.com/icons/) instead of text to show the previous and next pages.
79
+
80
+ {{< example class="flex flex-col space-y-6 items-center" github="components/pagination.md" show_dark=true >}}
81
+
82
+ <nav aria-label="Page navigation example">
83
+ <ul class="flex -space-x-px text-sm">
84
+ <li>
85
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-s-base text-sm w-9 h-9 focus:outline-none">
86
+ <span class="sr-only">Previous</span>
87
+ <svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/></svg>
88
+ </a>
89
+ </li>
90
+ <li>
91
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">1</a>
92
+ </li>
93
+ <li>
94
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">2</a>
95
+ </li>
96
+ <li>
97
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-9 h-9 focus:outline-none">3</a>
98
+ </li>
99
+ <li>
100
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">4</a>
101
+ </li>
102
+ <li>
103
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-9 h-9 focus:outline-none">5</a>
104
+ </li>
105
+ <li>
106
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-e-base text-sm w-9 h-9 focus:outline-none">
107
+ <span class="sr-only">Next</span>
108
+ <svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7"/></svg>
109
+ </a>
110
+ </li>
111
+ </ul>
112
+ </nav>
113
+
114
+ <nav aria-label="Page navigation example">
115
+ <ul class="flex -space-x-px text-sm">
116
+ <li>
117
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-s-base text-sm w-10 h-10 focus:outline-none">
118
+ <span class="sr-only">Previous</span>
119
+ <svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/></svg>
120
+ </a>
121
+ </li>
122
+ <li>
123
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">1</a>
124
+ </li>
125
+ <li>
126
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">2</a>
127
+ </li>
128
+ <li>
129
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-10 h-10 focus:outline-none">3</a>
130
+ </li>
131
+ <li>
132
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">4</a>
133
+ </li>
134
+ <li>
135
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium text-sm w-10 h-10 focus:outline-none">5</a>
136
+ </li>
137
+ <li>
138
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading font-medium rounded-e-base text-sm w-10 h-10 focus:outline-none">
139
+ <span class="sr-only">Next</span>
140
+ <svg class="w-4 h-4 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7"/></svg>
141
+ </a>
142
+ </li>
143
+ </ul>
144
+ </nav>
145
+ {{< /example >}}
146
+
147
+ ## Previous and next
148
+
149
+ Use the following markup to show simple previous and next elements.
150
+
151
+ {{< example class="flex flex-col space-y-4 items-center justify-center" github="components/pagination.md" show_dark=true >}}
152
+
153
+ <div class="flex space-x-2">
154
+ <!-- Previous Button -->
155
+ <a href="#" class="text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">
156
+ Previous
157
+ </a>
158
+
159
+ <!-- Next Button -->
160
+ <a href="#" class="text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">
161
+ Next
162
+ </a>
163
+ </div>
164
+
165
+ <div class="flex space-x-2">
166
+ <!-- Previous Button -->
167
+ <a href="#" class="text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">
168
+ Previous
169
+ </a>
170
+
171
+ <!-- Next Button -->
172
+ <a href="#" class="text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">
173
+ Next
174
+ </a>
175
+ </div>
176
+ {{< /example >}}
177
+
178
+ ## Previous and next with icons
179
+
180
+ Use the following code to show simple previous and next elements with icons.
181
+
182
+ {{< example class="flex flex-col space-y-4 items-center justify-center" github="components/pagination.md" show_dark=true >}}
183
+ <div class="flex space-x-2">
184
+ <!-- Previous Button -->
185
+ <a href="#" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">
186
+ <svg class="w-4 h-4 me-1.5 -ms-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
187
+ Previous
188
+ </a>
189
+
190
+ <!-- Next Button -->
191
+ <a href="#" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">
192
+ Next
193
+ <svg class="w-4 h-4 ms-1.5 -me-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
194
+ </a>
195
+ </div>
196
+
197
+ <div class="flex space-x-2">
198
+ <!-- Previous Button -->
199
+ <a href="#" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">
200
+ <svg class="w-4 h-4 me-1.5 -ms-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
201
+ Previous
202
+ </a>
203
+
204
+ <!-- Next Button -->
205
+ <a href="#" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">
206
+ Next
207
+ <svg class="w-4 h-4 ms-1.5 -me-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
208
+ </a>
209
+ </div>
210
+ {{< /example >}}
211
+
212
+ ## Table data pagination
213
+
214
+ You can use the following markup to show the number of data shown inside a table element and also the previous and next action buttons.
215
+
216
+ {{< example class="flex flex-col space-y-4 items-center justify-center" github="components/pagination.md" show_dark=true >}}
217
+
218
+ <div class="flex flex-col items-center">
219
+ <!-- Help text -->
220
+ <span class="text-sm text-body">
221
+ Showing <span class="font-semibold text-heading">1</span> to <span class="font-semibold text-heading">10</span> of <span class="font-semibold text-heading">100</span> Entries
222
+ </span>
223
+ <!-- Buttons -->
224
+ <div class="inline-flex mt-4 -space-x-px">
225
+ <!-- Previous Button -->
226
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-3 py-2 focus:outline-none">
227
+ Previous
228
+ </button>
229
+ <!-- Next Button -->
230
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-3 py-2 focus:outline-none">
231
+ Next
232
+ </button>
233
+ </div>
234
+ </div>
235
+ <div class="flex flex-col items-center">
236
+ <!-- Help text -->
237
+ <span class="text-sm text-body">
238
+ Showing <span class="font-semibold text-heading">1</span> to <span class="font-semibold text-heading">10</span> of <span class="font-semibold text-heading">100</span> Entries
239
+ </span>
240
+ <!-- Buttons -->
241
+ <div class="inline-flex mt-4 -space-x-px">
242
+ <!-- Previous Button -->
243
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-4 py-2.5 focus:outline-none">
244
+ Previous
245
+ </button>
246
+ <!-- Next Button -->
247
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-4 py-2.5 focus:outline-none">
248
+ Next
249
+ </button>
250
+ </div>
251
+ </div>
252
+ {{< /example >}}
253
+
254
+ ## Table pagination with icons
255
+
256
+ You can use the following code to show the number of data shown inside a table element and also the previous and next action buttons coupled with icons.
257
+
258
+ {{< example class="flex flex-col space-y-4 items-center justify-center" github="components/pagination.md" show_dark=true >}}
259
+
260
+ <div class="flex flex-col items-center">
261
+ <!-- Help text -->
262
+ <span class="text-sm text-body">
263
+ Showing <span class="font-semibold text-heading">1</span> to <span class="font-semibold text-heading">10</span> of <span class="font-semibold text-heading">100</span> Entries
264
+ </span>
265
+ <!-- Buttons -->
266
+ <div class="inline-flex mt-4 -space-x-px">
267
+ <!-- Previous Button -->
268
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-3 py-2 focus:outline-none">
269
+ <svg class="w-4 h-4 me-1.5 -ms-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
270
+ Previous
271
+ </button>
272
+ <!-- Next Button -->
273
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-3 py-2 focus:outline-none">
274
+ Next
275
+ <svg class="w-4 h-4 ms-1.5 -me-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
276
+ </button>
277
+ </div>
278
+ </div>
279
+ <div class="flex flex-col items-center">
280
+ <!-- Help text -->
281
+ <span class="text-sm text-body">
282
+ Showing <span class="font-semibold text-heading">1</span> to <span class="font-semibold text-heading">10</span> of <span class="font-semibold text-heading">100</span> Entries
283
+ </span>
284
+ <!-- Buttons -->
285
+ <div class="inline-flex mt-4 -space-x-px">
286
+ <!-- Previous Button -->
287
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-4 py-2.5 focus:outline-none">
288
+ <svg class="w-4 h-4 me-1.5 -ms-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
289
+ Previous
290
+ </button>
291
+ <!-- Next Button -->
292
+ <button type="button" class="inline-flex items-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-4 py-2.5 focus:outline-none">
293
+ Next
294
+ <svg class="w-4 h-4 ms-1.5 -me-0.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m14 0-4 4m4-4-4-4"/></svg>
295
+ </button>
296
+ </div>
297
+ </div>
298
+ {{< /example >}}
299
+
300
+ ## Pagination with dropdown
301
+
302
+ Use this example of a pagination component with a dropdown to select the number of items per page.
303
+
304
+ {{< example class="flex flex-col space-y-6 items-center" github="components/pagination.md" show_dark=true >}}
305
+
306
+ <nav aria-label="Page navigation example" class="flex items-center space-x-4">
307
+ <ul class="flex -space-x-px text-sm">
308
+ <li>
309
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-3 h-9 focus:outline-none">Previous</a>
310
+ </li>
311
+ <li>
312
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">1</a>
313
+ </li>
314
+ <li>
315
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">2</a>
316
+ </li>
317
+ <li>
318
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-9 h-9 focus:outline-none">3</a>
319
+ </li>
320
+ <li>
321
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">4</a>
322
+ </li>
323
+ <li>
324
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">5</a>
325
+ </li>
326
+ <li>
327
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-3 h-9 focus:outline-none">Next</a>
328
+ </li>
329
+ </ul>
330
+ <form class="w-32 mx-auto">
331
+ <label for="countries" class="sr-only">Select an option</label>
332
+ <select id="countries" class="block w-full px-3 py-2.5 bg-neutral-secondary-medium border border-default-medium text-heading text-sm leading-4 rounded-base focus:ring-brand focus:border-brand shadow-xs placeholder:text-body">
333
+ <option selected>10 per page</option>
334
+ <option value="25">25 per page</option>
335
+ <option value="50">50 per page</option>
336
+ <option value="100">100 per page</option>
337
+ </select>
338
+ </form>
339
+ </nav>
340
+
341
+ {{< /example >}}
342
+
343
+ ## Pagination with input
344
+
345
+ Use this pagination component with an input field to navigate through pages directly.
346
+
347
+ {{< example class="flex flex-col space-y-6 items-center" github="components/pagination.md" show_dark=true >}}
348
+
349
+ <nav aria-label="Page navigation example" class="flex items-center space-x-4">
350
+ <ul class="flex -space-x-px text-sm">
351
+ <li>
352
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-s-base text-sm px-3 h-9 focus:outline-none">Previous</a>
353
+ </li>
354
+ <li>
355
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">1</a>
356
+ </li>
357
+ <li>
358
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">2</a>
359
+ </li>
360
+ <li>
361
+ <a href="#" aria-current="page" class="flex items-center justify-center text-fg-brand bg-neutral-tertiary-medium box-border border border-default-medium hover:text-fg-brand font-medium text-sm w-9 h-9 focus:outline-none">3</a>
362
+ </li>
363
+ <li>
364
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">4</a>
365
+ </li>
366
+ <li>
367
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 text-sm w-9 h-9 focus:outline-none">5</a>
368
+ </li>
369
+ <li>
370
+ <a href="#" class="flex items-center justify-center text-body bg-neutral-secondary-medium border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading shadow-xs font-medium leading-5 rounded-e-base text-sm px-3 h-9 focus:outline-none">Next</a>
371
+ </li>
372
+ </ul>
373
+ <form class="mx-auto">
374
+ <div class="flex items-center space-x-2">
375
+ <label for="visitors" class="text-sm font-medium text-body shrink-0">Go to</label>
376
+ <input type="text" id="visitors" class="bg-neutral-secondary-medium w-10 border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block px-2.5 py-2 shadow-xs placeholder:text-body" placeholder="99" required />
377
+ <span class="text-sm font-medium text-body">page</span>
378
+ </div>
379
+ </form>
380
+ </nav>
381
+
382
+ {{< /example >}}
383
+
384
+ ## Input field and button
385
+
386
+ This example can be used to introduce the page number inside the input field and navigate by clicking on a button.
387
+
388
+ {{< example class="flex flex-col space-y-6 items-center" github="components/pagination.md" show_dark=true >}}
389
+
390
+ <nav aria-label="Page navigation example">
391
+ <form class="mx-auto flex items-center space-x-3">
392
+ <div class="flex items-center space-x-2">
393
+ <label for="visitors" class="text-sm font-medium text-heading shrink-0">Go to</label>
394
+ <input type="text" id="visitors" class="bg-neutral-secondary-medium w-10 border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block px-2.5 py-2 shadow-xs placeholder:text-body" placeholder="99" />
395
+ <span class="text-sm font-medium text-heading">page</span>
396
+ </div>
397
+ <button type="submit" class="text-white bg-brand hover:bg-brand-strong box-border border border-transparent focus:ring-4 focus:ring-brand-medium shadow-xs font-medium leading-5 rounded-base text-sm px-3 py-2 focus:outline-none">Go</button>
398
+ </form>
399
+ </nav>
400
+
401
+ {{< /example >}}
402
+
403
+ ## Select input and buttons
404
+
405
+ This example can be used to select the number of pages and navigate using the left and right arrows.
406
+
407
+ {{< example class="flex flex-col space-y-6 py-8 items-center" github="components/pagination.md" show_dark=true >}}
408
+
409
+ <nav aria-label="Page navigation example">
410
+ <form class="mx-auto flex items-center space-x-3">
411
+ <label for="countries" class="sr-only">Select an option</label>
412
+ <select id="countries" class="block w-16 px-3 py-2.5 bg-neutral-secondary-medium border border-default-medium text-heading text-sm leading-4 rounded-base focus:ring-brand focus:border-brand shadow-xs placeholder:text-body">
413
+ <option selected>03</option>
414
+ <option value="4">04</option>
415
+ <option value="5">05</option>
416
+ <option value="6">06</option>
417
+ <option value="7">07</option>
418
+ <option value="8">08</option>
419
+ <option value="9">09</option>
420
+ <option value="10">10</option>
421
+ </select>
422
+ <input type="text" id="visitors" class="bg-disabled w-28 border border-default-medium text-heading text-sm rounded-base focus:ring-brand focus:border-brand block px-2.5 py-2 shadow-xs placeholder:text-fg-disabled" placeholder="of 99 pages" disabled/>
423
+ <div class="inline-flex rounded-base shadow-xs -space-x-px" role="group">
424
+ <button data-tooltip-target="tooltip-previous" type="button" class="inline-flex items-center justify-center text-body bg-neutral-secondary-medium rounded-s-base box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary leading-5 w-9 h-9 focus:outline-none">
425
+ <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/></svg>
426
+ </button>
427
+ <div id="tooltip-previous" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm leading-4 font-medium text-white transition-opacity duration-300 bg-dark rounded-base shadow-xs opacity-0 tooltip">
428
+ Previous
429
+ <div class="tooltip-arrow" data-popper-arrow></div>
430
+ </div>
431
+ <button data-tooltip-target="tooltip-next" type="button" class="inline-flex items-center justify-center text-body bg-neutral-secondary-medium rounded-e-base box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary leading-5 w-9 h-9 focus:outline-none">
432
+ <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7"/></svg>
433
+ </button>
434
+ <div id="tooltip-next" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm leading-4 font-medium text-white transition-opacity duration-300 bg-dark rounded-base shadow-xs opacity-0 tooltip">
435
+ Next
436
+ <div class="tooltip-arrow" data-popper-arrow></div>
437
+ </div>
438
+ </div>
439
+ </form>
440
+ </nav>
441
+
442
+ {{< /example >}}
443
+
444
+ ## Single pagination
445
+
446
+ This example can be used to show an interval of items per page and navigate using the left and right arrows.
447
+
448
+ {{< example class="flex flex-col space-y-6 py-8 items-center" github="components/pagination.md" show_dark=true >}}
449
+
450
+ <nav aria-label="Page navigation example">
451
+ <div class="inline-flex rounded-base shadow-xs -space-x-px" role="group">
452
+ <button data-tooltip-target="tooltip-previous" type="button" class="inline-flex items-center justify-center text-body bg-neutral-secondary-medium rounded-s-base box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary leading-5 w-9 h-9 focus:outline-none">
453
+ <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/></svg>
454
+ </button>
455
+ <div id="tooltip-previous" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm leading-4 font-medium text-white transition-opacity duration-300 bg-dark rounded-base shadow-xs opacity-0 tooltip">
456
+ Previous
457
+ <div class="tooltip-arrow" data-popper-arrow></div>
458
+ </div>
459
+ <button type="button" class="inline-flex shrink-0 text-sm items-center justify-center text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading leading-5 px-3 h-9 focus:outline-none">
460
+ 1 of 99
461
+ </button>
462
+ <button data-tooltip-target="tooltip-next" type="button" class="inline-flex items-center justify-center text-body bg-neutral-secondary-medium rounded-e-base box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-3 focus:ring-neutral-tertiary leading-5 w-9 h-9 focus:outline-none">
463
+ <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5 7 7-7 7"/></svg>
464
+ </button>
465
+ <div id="tooltip-next" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm leading-4 font-medium text-white transition-opacity duration-300 bg-dark rounded-base shadow-xs opacity-0 tooltip">
466
+ Next
467
+ <div class="tooltip-arrow" data-popper-arrow></div>
468
+ </div>
469
+ </div>
470
+ </nav>
471
+
472
+ {{< /example >}}