x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<div class="flex gap-1"> <div id="modal-0" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-sm"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 0 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-0" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 0 </div> </div> </div> </div> <button data-modal-target="modal-0" data-modal-toggle="modal-0" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 0</button> <div id="modal-1" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-md"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 1 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-1" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 1 </div> </div> </div> </div> <button data-modal-target="modal-1" data-modal-toggle="modal-1" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 1</button> <div id="modal-2" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-lg"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 2 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-2" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 2 </div> </div> </div> </div> <button data-modal-target="modal-2" data-modal-toggle="modal-2" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 2</button> <div id="modal-3" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 3 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-3" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 3 </div> </div> </div> </div> <button data-modal-target="modal-3" data-modal-toggle="modal-3" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 3</button> <div id="modal-4" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-2xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 4 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-4" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 4 </div> </div> </div> </div> <button data-modal-target="modal-4" data-modal-toggle="modal-4" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 4</button> <div id="modal-5" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-3xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 5 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-5" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 5 </div> </div> </div> </div> <button data-modal-target="modal-5" data-modal-toggle="modal-5" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 5</button> <div id="modal-6" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-4xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 6 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-6" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 6 </div> </div> </div> </div> <button data-modal-target="modal-6" data-modal-toggle="modal-6" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 6</button> <div id="modal-7" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-5xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 7 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-7" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 7 </div> </div> </div> </div> <button data-modal-target="modal-7" data-modal-toggle="modal-7" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 7</button> <div id="modal-8" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-6xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 8 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-8" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 8 </div> </div> </div> </div> <button data-modal-target="modal-8" data-modal-toggle="modal-8" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 8</button> <div id="modal-9" class="fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full flex hidden" aria-hidden="true"> <div class="relative h-full w-full p-4 md:h-auto max-w-7xl"> <div class="relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow-sm dark:bg-gray-700"> <div class="flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 border-b-0 p-2"> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> 9 </b> </h3> <button class="close-button ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white" type="button" data-modal-hide="modal-9" aria-label="Close"><span class="sr-only">Dismiss</span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon" class="w-5 h-5"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path> </svg> </button></div> <div class="flex-1 overflow-auto p-6 pt-0 "> Content 9 </div> </div> </div> </div> <button data-modal-target="modal-9" data-modal-toggle="modal-9" class="text-white bg-blue-700 border border-transparent enabled:hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-hidden rounded-lg text-sm p-1.5">Size 9</button></div><div class="h-40"></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="flex gap-1"> <% (0..Fluxbit::Config::ModalComponent.styles[:root][:size].count - 1).each do |key| %> <%= fx_modal(id: "modal-#{key}", opened: false, static: false, size: key, flat: true ) do |modal| %> <% modal.with_title do %> <h3 class="text-xl font-medium text-gray-900 dark:text-white"> Title <b> <%= key %> </b> </h3> <% end %> <%= "Content #{key}" %> <% end %> <%= fx_button("data-modal-target": "modal-#{key}", "data-modal-toggle": "modal-#{key}", with_content: "Size #{key.to_s}") %> <% end %></div><div class="h-40"></div>
No notes provided.
No params configured.