@@ -18,15 +18,15 @@ export default function ContextMenuExperiment() {
18
18
</ p >
19
19
20
20
< ContextMenu . Root >
21
- < ContextMenu . Trigger className = "rounded-lg border-2 border- blue-300 bg-blue-50 p-8" >
21
+ < ContextMenu . Trigger className = "border-blue-300 bg-blue-50 rounded-lg border-2 p-8" >
22
22
< div className = "text-center" >
23
- < span className = "block font-medium text-blue-700" > Outer Context Menu</ span >
24
- < span className = "block text-sm text- blue-600" > Right-click me</ span >
23
+ < span className = "text-blue-700 block font-medium " > Outer Context Menu</ span >
24
+ < span className = "text-blue-600 block text-sm " > Right-click me</ span >
25
25
26
26
< ContextMenu . Root >
27
- < ContextMenu . Trigger className = "mt-4 inline-block rounded border-2 border-red-300 bg-red-50 p-4" >
28
- < span className = "block font-medium text-red-700" > Inner Context Menu</ span >
29
- < span className = "block text-sm text- red-600" > Right-click me too!</ span >
27
+ < ContextMenu . Trigger className = "border-red-300 bg-red-50 mt-4 inline-block rounded border-2 p-4" >
28
+ < span className = "text-red-700 block font-medium " > Inner Context Menu</ span >
29
+ < span className = "text-red-600 block text-sm " > Right-click me too!</ span >
30
30
</ ContextMenu . Trigger >
31
31
< ContextMenu . Portal >
32
32
< ContextMenu . Positioner className = "outline-none" >
@@ -72,19 +72,19 @@ export default function ContextMenuExperiment() {
72
72
< p className = "text-gray-600" > Right-click on either box and explore the submenu options.</ p >
73
73
74
74
< ContextMenu . Root >
75
- < ContextMenu . Trigger className = "rounded-lg border-2 border- green-300 bg-green-50 p-8" >
75
+ < ContextMenu . Trigger className = "border-green-300 bg-green-50 rounded-lg border-2 p-8" >
76
76
< div className = "text-center" >
77
- < span className = "block font-medium text-green-700" >
77
+ < span className = "text-green-700 block font-medium " >
78
78
Outer Context Menu with Submenu
79
79
</ span >
80
- < span className = "block text-sm text- green-600" > Right-click me</ span >
80
+ < span className = "text-green-600 block text-sm " > Right-click me</ span >
81
81
82
82
< ContextMenu . Root >
83
- < ContextMenu . Trigger className = "mt-4 inline-block rounded border-2 border-purple-300 bg-purple-50 p-4" >
84
- < span className = "block font-medium text-purple-700" >
83
+ < ContextMenu . Trigger className = "border-purple-300 bg-purple-50 mt-4 inline-block rounded border-2 p-4" >
84
+ < span className = "text-purple-700 block font-medium " >
85
85
Inner Context Menu with Submenu
86
86
</ span >
87
- < span className = "block text-sm text- purple-600" > Right-click me too!</ span >
87
+ < span className = "text-purple-600 block text-sm " > Right-click me too!</ span >
88
88
</ ContextMenu . Trigger >
89
89
< ContextMenu . Portal >
90
90
< ContextMenu . Positioner className = "outline-none" >
@@ -166,10 +166,10 @@ export default function ContextMenuExperiment() {
166
166
</ p >
167
167
168
168
< ContextMenu . Root >
169
- < ContextMenu . Trigger className = "rounded-lg border-2 border- orange-300 bg-orange-50 p-8" >
169
+ < ContextMenu . Trigger className = "border-orange-300 bg-orange-50 rounded-lg border-2 p-8" >
170
170
< div className = "text-center" >
171
- < span className = "block font-medium text-orange-700" > Complex Context Menu</ span >
172
- < span className = "block text-sm text- orange-600" >
171
+ < span className = "text-orange-700 block font-medium " > Complex Context Menu</ span >
172
+ < span className = "text-orange-600 block text-sm " >
173
173
Right-click me, then right-click "Special Item"
174
174
</ span >
175
175
</ div >
@@ -229,7 +229,7 @@ export default function ContextMenuExperiment() {
229
229
Deep Action 2
230
230
</ Menu . Item >
231
231
< Menu . Separator className = "my-1 h-px bg-gray-200" />
232
- < Menu . Item className = "cursor-default px-3 py-2 text-sm text-red-600 hover:bg-gray-100" >
232
+ < Menu . Item className = "text-red-600 cursor-default px-3 py-2 text-sm hover:bg-gray-100" >
233
233
Deep Delete
234
234
</ Menu . Item >
235
235
</ Menu . Popup >
@@ -238,7 +238,7 @@ export default function ContextMenuExperiment() {
238
238
</ Menu . SubmenuRoot >
239
239
240
240
< ContextMenu . Separator className = "my-1 h-px bg-gray-200" />
241
- < ContextMenu . Item className = "cursor-default px-3 py-2 text-sm text-red-600 hover:bg-gray-100" >
241
+ < ContextMenu . Item className = "text-red-600 cursor-default px-3 py-2 text-sm hover:bg-gray-100" >
242
242
Nested Delete
243
243
</ ContextMenu . Item >
244
244
</ ContextMenu . Popup >
@@ -247,7 +247,7 @@ export default function ContextMenuExperiment() {
247
247
</ ContextMenu . Root >
248
248
249
249
< ContextMenu . Separator className = "my-1 h-px bg-gray-200" />
250
- < ContextMenu . Item className = "cursor-default px-3 py-2 text-sm text-red-600 hover:bg-gray-100" >
250
+ < ContextMenu . Item className = "text-red-600 cursor-default px-3 py-2 text-sm hover:bg-gray-100" >
251
251
Delete
252
252
</ ContextMenu . Item >
253
253
</ ContextMenu . Popup >
@@ -268,16 +268,16 @@ export default function ContextMenuExperiment() {
268
268
</ p >
269
269
270
270
< ContextMenu . Root >
271
- < ContextMenu . Trigger className = "rounded-lg border-2 border- cyan-300 bg-cyan-50 p-8" >
271
+ < ContextMenu . Trigger className = "border-cyan-300 bg-cyan-50 rounded-lg border-2 p-8" >
272
272
< div className = "text-center" >
273
- < span className = "block font-medium text-cyan-700" > Outer Context Menu</ span >
274
- < span className = "block text-sm text- cyan-600" > Right-click me</ span >
273
+ < span className = "text-cyan-700 block font-medium " > Outer Context Menu</ span >
274
+ < span className = "text-cyan-600 block text-sm " > Right-click me</ span >
275
275
276
276
< ContextMenu . Root >
277
- < ContextMenu . Trigger className = "mt-4 flex flex-col items-center justify-center rounded-lg border-2 border-cyan-300 bg-cyan-50 p-8" >
277
+ < ContextMenu . Trigger className = "border-cyan-300 bg-cyan-50 mt-4 flex flex-col items-center justify-center rounded-lg border-2 p-8" >
278
278
< div className = "text-center" >
279
- < span className = "block font-medium text-cyan-700" > Inner Context Menu</ span >
280
- < span className = "block text-sm text- cyan-600" > Right-click me</ span >
279
+ < span className = "text-cyan-700 block font-medium " > Inner Context Menu</ span >
280
+ < span className = "text-cyan-600 block text-sm " > Right-click me</ span >
281
281
282
282
< Popover . Root >
283
283
< Popover . Trigger className = "mt-2 flex items-center justify-center rounded-md border border-gray-200 bg-gray-50 p-4 text-gray-900 select-none hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-blue-800 active:bg-gray-100 data-[popup-open]:bg-gray-100" >
@@ -303,11 +303,11 @@ export default function ContextMenuExperiment() {
303
303
</ Menu . Root >
304
304
305
305
< ContextMenu . Root >
306
- < ContextMenu . Trigger className = "mt-4 inline-block rounded border-2 border-red-300 bg-red-50 p-4" >
307
- < span className = "block font-medium text-red-700" >
306
+ < ContextMenu . Trigger className = "border-red-300 bg-red-50 mt-4 inline-block rounded border-2 p-4" >
307
+ < span className = "text-red-700 block font-medium " >
308
308
Popover Context Menu
309
309
</ span >
310
- < span className = "block text-sm text- red-600" >
310
+ < span className = "text-red-600 block text-sm " >
311
311
Right-click me!
312
312
</ span >
313
313
</ ContextMenu . Trigger >
0 commit comments