-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwireframes.html
More file actions
872 lines (824 loc) · 64.8 KB
/
Copy pathwireframes.html
File metadata and controls
872 lines (824 loc) · 64.8 KB
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wireframe Kit — Component Catalog</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap">
<link rel="stylesheet" href="wireframe-kit/wireframe-kit.css">
<script src="wireframe-kit/wireframe-kit.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--wf-bg); color: var(--wf-text); }
/* Layout */
.catalog { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
/* Sidebar */
.catalog-sidebar {
background: var(--wf-surface);
border-right: 1.5px solid var(--wf-border);
padding: 0;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.catalog-sidebar__header {
padding: 20px 20px 16px;
border-bottom: 1px solid var(--wf-fill-dark);
}
.catalog-sidebar__title {
font-size: 18px;
color: var(--wf-text);
margin-bottom: 4px;
}
.catalog-sidebar__subtitle {
font-size: 12px;
color: var(--wf-text-light);
}
.catalog-sidebar__search {
margin: 12px 16px;
padding: 7px 12px;
border: 1.5px solid var(--wf-border);
border-radius: 3px 4px 3px 5px;
background: var(--wf-surface);
font-family: 'Inter', sans-serif;
font-size: 13px;
color: var(--wf-text);
width: calc(100% - 32px);
outline: none;
}
.catalog-sidebar__search::placeholder { color: var(--wf-text-lighter); }
.catalog-sidebar__search:focus { border-color: var(--wf-border-dark); }
.catalog-sidebar__nav {
flex: 1;
overflow-y: auto;
padding: 8px 0;
}
.nav-group__title {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--wf-text-lighter);
padding: 16px 20px 6px;
}
.nav-item {
display: block;
padding: 5px 20px 5px 28px;
font-size: 13px;
color: var(--wf-text-light);
text-decoration: none;
cursor: pointer;
border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--wf-text); background: var(--wf-fill); }
.nav-item.active { color: var(--wf-text); border-left-color: var(--wf-text); background: var(--wf-fill); }
.nav-item.hidden { display: none; }
/* Main */
.catalog-main {
padding: 40px 48px;
max-width: 900px;
}
.catalog-main h1 {
font-size: 28px;
font-weight: 400;
margin-bottom: 8px;
}
.catalog-main > p {
font-size: 15px;
color: var(--wf-text-light);
margin-bottom: 40px;
}
/* Sections */
.section {
margin-bottom: 48px;
scroll-margin-top: 24px;
}
.section__title {
font-size: 22px;
font-weight: 400;
border-bottom: 1.5px solid var(--wf-border);
padding-bottom: 8px;
margin-bottom: 24px;
}
/* Component blocks */
.component {
margin-bottom: 32px;
scroll-margin-top: 24px;
}
.component__header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.component__name {
font-size: 16px;
color: var(--wf-text);
}
.component__tag {
font-size: 11px;
color: var(--wf-text-lighter);
border: 1px dashed var(--wf-border);
padding: 1px 8px;
border-radius: 3px;
}
/* Inline copy-code button. Stays muted until hover. */
.component__copy-btn {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
font-family: 'Inter', sans-serif;
font-size: 12px;
color: var(--wf-text-light);
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.component__copy-btn:hover {
background: var(--wf-fill);
border-color: var(--wf-border);
color: var(--wf-text);
}
.component__copy-btn svg { display: block; }
/* Hidden code source — read by copyCode(). Kept in DOM (not in a data
attribute) so multi-line / quote-heavy snippets stay readable in the
file source. */
.component__code { display: none; }
.component__preview {
background: var(--wf-bg);
border: 1.5px solid var(--wf-border);
border-radius: 5px 7px 6px 8px;
padding: 24px;
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: flex-start;
}
.component__preview--col {
flex-direction: column;
}
.component__preview--full {
display: block;
}
/* Template cards */
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
}
.template-card {
background: var(--wf-surface);
border: 1.5px solid var(--wf-border);
border-radius: 5px 7px 6px 8px;
box-shadow: 1px 2px 0px rgba(0,0,0,0.06);
overflow: hidden;
text-decoration: none;
color: var(--wf-text);
transition: box-shadow 0.15s;
}
.template-card:hover {
box-shadow: 2px 3px 0px rgba(0,0,0,0.1);
}
.template-card__preview {
height: 140px;
background: var(--wf-fill);
background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='%23ccc8c0'/%3E%3C/svg%3E");
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
/* Mini app-shell preview — L-shape: rail spans full height (rows 1-2),
top bar sits only over the main column. Mirrors .wf-page. */
.template-card__mini {
width: 80%;
height: 80%;
background: var(--wf-fill);
border: 1px solid var(--wf-border);
border-radius: 3px;
display: grid;
grid-template-columns: 22px 1fr;
grid-template-rows: 14px 1fr;
gap: 1px;
overflow: hidden;
}
.template-card__mini-side {
grid-column: 1; grid-row: 1 / -1;
background: var(--wf-fill);
}
.template-card__mini-nav {
grid-column: 2; grid-row: 1;
background: var(--wf-fill);
}
.template-card__mini-main {
grid-column: 2; grid-row: 2;
background: var(--wf-surface);
border-top-left-radius: 4px;
padding: 4px;
}
.template-card__mini-block { background: var(--wf-fill-dark); border-radius: 1px; height: 8px; margin-bottom: 3px; }
.template-card__mini-block:nth-child(2) { width: 60%; }
.template-card__body {
padding: 12px 16px;
}
.template-card__name { font-size: 14px; margin-bottom: 2px; }
.template-card__desc { font-size: 12px; color: var(--wf-text-light); }
/* Getting started section */
.getting-started-code {
background: var(--wf-text);
color: #d0d0d0;
font-family: var(--wf-font-mono);
font-size: 12px;
line-height: 1.7;
padding: 20px;
border-radius: 5px 7px 6px 8px;
border: 1.5px solid var(--wf-border-dark);
overflow-x: auto;
white-space: pre;
margin-bottom: 24px;
}
</style>
</head>
<body>
<div class="catalog">
<!-- Sidebar -->
<aside class="catalog-sidebar">
<div class="catalog-sidebar__header">
<div class="catalog-sidebar__title">Wireframe Kit</div>
<div class="catalog-sidebar__subtitle">Neo Design System (Lo-Fi)</div>
</div>
<input class="catalog-sidebar__search" type="text" placeholder="Search components..." id="search">
<nav class="catalog-sidebar__nav" id="nav">
<div class="nav-group__title">Getting started</div>
<a class="nav-item" href="#start" data-search="getting started setup usage">Setup & usage</a>
<div class="nav-group__title">Templates</div>
<a class="nav-item" href="#templates" data-search="templates pages layouts dashboard detail">Page templates</a>
<div class="nav-group__title">Layout</div>
<a class="nav-item" href="#navbar" data-search="navbar navigation header top bar">Navbar</a>
<a class="nav-item" href="#sidebar" data-search="sidebar navigation side menu">Sidebar</a>
<a class="nav-item" href="#page" data-search="page layout grid main">Page / Grid</a>
<div class="nav-group__title">Buttons</div>
<a class="nav-item" href="#button" data-search="button primary secondary ghost destructive">Button</a>
<a class="nav-item" href="#button-group" data-search="button group segmented">ButtonGroup</a>
<a class="nav-item" href="#button-tab" data-search="button tab toggle switch">ButtonTab</a>
<div class="nav-group__title">Form controls</div>
<a class="nav-item" href="#input" data-search="input text field form label error">Input</a>
<a class="nav-item" href="#textarea" data-search="textarea multiline text">Textarea</a>
<a class="nav-item" href="#select" data-search="select dropdown option picker">Select</a>
<a class="nav-item" href="#search-comp" data-search="search bar filter find">Search</a>
<a class="nav-item" href="#datepicker" data-search="date picker calendar">DatePicker</a>
<a class="nav-item" href="#checkbox" data-search="checkbox check toggle">Checkbox</a>
<a class="nav-item" href="#radio" data-search="radio option choice">Radio</a>
<a class="nav-item" href="#toggle" data-search="toggle switch on off">Toggle</a>
<a class="nav-item" href="#dropdown" data-search="dropdown menu actions popover">Dropdown</a>
<div class="nav-group__title">Data display</div>
<a class="nav-item" href="#badge" data-search="badge count status indicator">Badge</a>
<a class="nav-item" href="#tag" data-search="tag label category">Tag</a>
<a class="nav-item" href="#chip" data-search="chip removable filter">Chip</a>
<a class="nav-item" href="#avatar" data-search="avatar initials user profile photo">Avatar</a>
<a class="nav-item" href="#kv" data-search="key value pair detail metadata">KeyValuePair</a>
<a class="nav-item" href="#list-item" data-search="list item row entry">ListItem</a>
<a class="nav-item" href="#table" data-search="table rows columns data">Table</a>
<a class="nav-item" href="#datagrid" data-search="datagrid table filter sort toolbar">DataGrid</a>
<a class="nav-item" href="#progress" data-search="progress bar loading percentage">Progress</a>
<a class="nav-item" href="#diffstat" data-search="diff stat additions deletions git">DiffStat</a>
<div class="nav-group__title">Navigation</div>
<a class="nav-item" href="#breadcrumb" data-search="breadcrumb path trail">Breadcrumb</a>
<a class="nav-item" href="#tabs" data-search="tabs navigation switch panel">Tabs</a>
<a class="nav-item" href="#pagination" data-search="pagination pages next previous">Pagination</a>
<div class="nav-group__title">Feedback</div>
<a class="nav-item" href="#alert" data-search="alert info success warning error message">Alert</a>
<a class="nav-item" href="#banner" data-search="banner notification bar dismiss">Banner</a>
<a class="nav-item" href="#toast" data-search="toast snackbar notification popup">Toast</a>
<a class="nav-item" href="#modal" data-search="modal dialog popup overlay confirm">Modal</a>
<a class="nav-item" href="#spinner" data-search="spinner loading indicator">Spinner</a>
<a class="nav-item" href="#empty-state" data-search="empty state no results placeholder">EmptyState</a>
<div class="nav-group__title">Cards & charts</div>
<a class="nav-item" href="#card" data-search="card container panel section">Card</a>
<a class="nav-item" href="#stat-card" data-search="stat card metric number kpi">StatCard</a>
<a class="nav-item" href="#chart" data-search="chart bar graph visualization">Chart</a>
<div class="nav-group__title">Developer</div>
<a class="nav-item" href="#code-snippet" data-search="code snippet block syntax highlight">CodeSnippet</a>
<a class="nav-item" href="#tree" data-search="tree hierarchy folder file structure">Tree</a>
<div class="nav-group__title">Assemblies</div>
<a class="nav-item" href="#card-table" data-search="card table layout assembly stacked rows">CardTable</a>
<a class="nav-item" href="#filter-results" data-search="filter results layout assembly chips search">FilterResults</a>
<a class="nav-item" href="#data-table-layout" data-search="data table layout assembly toolbar grid">DataTableLayout</a>
<a class="nav-item" href="#changelog-feed" data-search="changelog feed layout assembly timeline events">ChangelogFeed</a>
<div class="nav-group__title">Compositions</div>
<a class="nav-item" href="#recipe-results" data-search="recipe execution results composition">RecipeResults</a>
<a class="nav-item" href="#activation" data-search="activation empty state onboarding composition">Activation</a>
</nav>
</aside>
<!-- Main Content -->
<main class="catalog-main">
<h1>Wireframe Kit</h1>
<p>A lo-fi component library mirroring Neo, Moderne's design system. Browse components below, view their code, and copy into your prototypes.</p>
<!-- Getting Started -->
<div class="section" id="start">
<div class="section__title">Setup & usage</div>
<p style="font-size:14px;color:var(--wf-text-light);margin-bottom:16px">Add these two lines to any HTML file in your prototype repo:</p>
<div class="getting-started-code"><link rel="stylesheet" href="wireframe-kit/wireframe-kit.css">
<script src="wireframe-kit/wireframe-kit.js"></script></div>
<p style="font-size:14px;color:var(--wf-text-light);margin-bottom:16px">Then use web components directly in your HTML. Wrap everything in <code style="font-family:var(--wf-font-mono);font-size:12px;background:var(--wf-fill-dark);padding:2px 6px;border-radius:3px">class="wf-kit"</code> for base styles:</p>
<div class="getting-started-code"><body class="wf-kit">
<div class="wf-page">
<!-- Left rail: home + primary nav + tenant logo -->
<wf-sidebar
home="My App"
items="Moddy|sparkles,DevCenter|pie-chart,Trigrep|search,Artifacts|package,Marketplace|globe,Builder|blocks,Activity|history,Changelog|activity"
active="0"
tenant="ACM"></wf-sidebar>
<!-- Top bar: org switcher, search, action icons, avatar -->
<wf-navbar
org="Acme, Inc."
search="Search…"
actions="✦,?"
avatar="AC"></wf-navbar>
<main class="wf-main">
<wf-card title="Hello">Your content here</wf-card>
</main>
</div>
</body></div>
<p style="font-size:14px;color:var(--wf-text-light)">For React, import from <code style="font-family:var(--wf-font-mono);font-size:12px;background:var(--wf-fill-dark);padding:2px 6px;border-radius:3px">wireframe-kit.jsx</code> alongside <code style="font-family:var(--wf-font-mono);font-size:12px;background:var(--wf-fill-dark);padding:2px 6px;border-radius:3px">wireframe-kit.css</code>.</p>
</div>
<!-- Templates -->
<div class="section" id="templates">
<div class="section__title">Page templates</div>
<div class="template-grid">
<a class="template-card" href="wireframe-kit/examples/dashboard.html">
<div class="template-card__preview">
<div class="template-card__mini">
<div class="template-card__mini-nav"></div>
<div class="template-card__mini-side"></div>
<div class="template-card__mini-main">
<div class="template-card__mini-block"></div>
<div class="template-card__mini-block"></div>
<div class="template-card__mini-block"></div>
</div>
</div>
</div>
<div class="template-card__body">
<div class="template-card__name">Dashboard</div>
<div class="template-card__desc">Stats, charts, data grid, pagination</div>
</div>
</a>
<a class="template-card" href="wireframe-kit/examples/recipe-detail.html">
<div class="template-card__preview">
<div class="template-card__mini">
<div class="template-card__mini-side"></div>
<div class="template-card__mini-nav"></div>
<div class="template-card__mini-main" style="display:grid;grid-template-columns:1fr 30px;gap:3px;">
<div>
<div class="template-card__mini-block"></div>
<div class="template-card__mini-block"></div>
</div>
<div style="background:var(--wf-fill);padding:2px;border-radius:2px;">
<div class="template-card__mini-block" style="height:4px"></div>
<div class="template-card__mini-block" style="height:4px;width:70%"></div>
</div>
</div>
</div>
</div>
<div class="template-card__body">
<div class="template-card__name">Detail page</div>
<div class="template-card__desc">Recipe view with metadata column</div>
</div>
</a>
<a class="template-card" href="wireframe-kit/examples/components.html">
<div class="template-card__preview">
<!-- No-rail variant: top bar spans full width, no left rail -->
<div class="template-card__mini" style="grid-template-columns: 1fr;">
<div class="template-card__mini-nav" style="grid-column:1"></div>
<div class="template-card__mini-main" style="grid-column:1;border-top-left-radius:0;">
<div class="template-card__mini-block"></div>
<div class="template-card__mini-block" style="width:80%"></div>
<div class="template-card__mini-block" style="width:50%"></div>
<div class="template-card__mini-block"></div>
</div>
</div>
</div>
<div class="template-card__body">
<div class="template-card__name">All components</div>
<div class="template-card__desc">Full rendered catalog</div>
</div>
</a>
</div>
</div>
<!-- ===== LAYOUT ===== -->
<div class="section" id="navbar">
<div class="section__title">Layout</div>
<div class="component">
<div class="component__header"><span class="component__name">Navbar</span><span class="component__tag"><wf-navbar> — top bar over main</span><pre class="component__code"><!-- Top bar slots: org switcher, search, action icons, avatar -->
<wf-navbar
org="Moderne, Inc."
search="Search recipes, repos, runs…"
actions="✦,?,◐"
avatar="AC">
</wf-navbar></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full" style="background:var(--wf-surface-chrome);padding:0;">
<wf-navbar org="Moderne, Inc." search="Search recipes, repos, runs…" actions="✦,?,◐" avatar="AC"></wf-navbar>
</div>
</div>
<div class="component" id="sidebar">
<div class="component__header"><span class="component__name">Sidebar</span><span class="component__tag"><wf-sidebar> — 88px left rail</span><pre class="component__code"><!-- Rail slots: home (top), items (Label|icon pairs), tenant (bottom) -->
<wf-sidebar
home="Moderne"
items="Moddy|sparkles,DevCenter|pie-chart,Trigrep|search,Artifacts|package,Marketplace|globe,Builder|blocks,Activity|history,Changelog|activity"
active="0"
tenant="MOD">
</wf-sidebar></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full" style="background:var(--wf-surface-chrome);padding:0;height:520px;display:flex;align-items:stretch;">
<wf-sidebar
home="Moderne"
items="Moddy|sparkles,DevCenter|pie-chart,Trigrep|search,Artifacts|package,Marketplace|globe,Builder|blocks,Activity|history,Changelog|activity"
active="0"
tenant="MOD"
style="height:520px;"></wf-sidebar>
</div>
</div>
<div class="component" id="page">
<div class="component__header"><span class="component__name">Page / Grid</span><span class="component__tag">CSS classes</span><pre class="component__code"><!-- L-shape app shell: rail on left (full height), top bar over main only -->
<div class="wf-page">
<wf-sidebar home="App" items="Moddy|sparkles,Trigrep|search" active="0" tenant="ACM"></wf-sidebar>
<wf-navbar org="Org name" search="Search…" actions="✦,?" avatar="AC"></wf-navbar>
<main class="wf-main">...</main>
</div>
<!-- No-rail variant for catalog/auth pages -->
<div class="wf-page wf-page--no-sidebar">
<wf-navbar org="Org name"></wf-navbar>
<main class="wf-main">...</main>
</div>
<!-- Inside main: Grid (2/3/4 cols), Stack (vertical), Row (horizontal) -->
<div class="wf-grid wf-grid--3">...</div>
<div class="wf-stack">...</div>
<div class="wf-row">...</div></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--col" style="gap:8px">
<div class="wf-grid wf-grid--3" style="width:100%">
<div style="background:var(--wf-fill-dark);padding:16px;border-radius:4px;text-align:center;font-size:13px;color:var(--wf-text-light)">1/3</div>
<div style="background:var(--wf-fill-dark);padding:16px;border-radius:4px;text-align:center;font-size:13px;color:var(--wf-text-light)">1/3</div>
<div style="background:var(--wf-fill-dark);padding:16px;border-radius:4px;text-align:center;font-size:13px;color:var(--wf-text-light)">1/3</div>
</div>
</div>
</div>
</div>
<!-- ===== BUTTONS ===== -->
<div class="section" id="button">
<div class="section__title">Buttons</div>
<div class="component">
<div class="component__header"><span class="component__name">Button</span><span class="component__tag"><wf-button></span><pre class="component__code"><wf-button>Default</wf-button>
<wf-button variant="primary">Primary</wf-button>
<wf-button variant="secondary">Secondary</wf-button>
<wf-button variant="ghost">Ghost</wf-button>
<wf-button variant="destructive">Destructive</wf-button>
<wf-button size="sm">Small</wf-button>
<wf-button size="lg">Large</wf-button></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<button class="wf-button">Default</button>
<button class="wf-button wf-button--primary">Primary</button>
<button class="wf-button wf-button--secondary">Secondary</button>
<button class="wf-button wf-button--ghost">Ghost</button>
<button class="wf-button wf-button--destructive">Destructive</button>
<button class="wf-button wf-button--sm">Small</button>
<button class="wf-button wf-button--lg">Large</button>
</div>
</div>
<div class="component" id="button-group">
<div class="component__header"><span class="component__name">ButtonGroup</span><span class="component__tag"><wf-button-group></span><pre class="component__code"><wf-button-group items="Day,Week,Month"></wf-button-group></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-button-group items="Day,Week,Month"></wf-button-group>
</div>
</div>
<div class="component" id="button-tab">
<div class="component__header"><span class="component__name">ButtonTab</span><span class="component__tag"><wf-button-tab></span><pre class="component__code"><wf-button-tab items="Overview,Details,History" active="0"></wf-button-tab></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-button-tab items="Overview,Details,History" active="0"></wf-button-tab>
</div>
</div>
</div>
<!-- ===== FORM CONTROLS ===== -->
<div class="section" id="input">
<div class="section__title">Form controls</div>
<div class="component">
<div class="component__header"><span class="component__name">Input</span><span class="component__tag"><wf-input></span><pre class="component__code"><wf-input label="Email address" placeholder="you@example.com"></wf-input>
<wf-input label="With error" error="This field is required"></wf-input></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="max-width:320px">
<wf-input label="Email address" placeholder="you@example.com"></wf-input>
<wf-input label="With error" placeholder="..." error="This field is required"></wf-input>
</div>
</div>
<div class="component" id="textarea">
<div class="component__header"><span class="component__name">Textarea</span><span class="component__tag"><wf-textarea></span><pre class="component__code"><wf-textarea label="Description" placeholder="Enter a description..."></wf-textarea></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="max-width:320px">
<wf-textarea label="Description" placeholder="Enter a description..."></wf-textarea>
</div>
</div>
<div class="component" id="select">
<div class="component__header"><span class="component__name">Select</span><span class="component__tag"><wf-select></span><pre class="component__code"><wf-select placeholder="Choose option..."></wf-select>
<wf-select value="Selected value"></wf-select></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-select placeholder="Choose option..."></wf-select>
<wf-select value="Selected value"></wf-select>
</div>
</div>
<div class="component" id="search-comp">
<div class="component__header"><span class="component__name">Search</span><span class="component__tag"><wf-search></span><pre class="component__code"><wf-search placeholder="Search recipes..."></wf-search></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="max-width:300px"><wf-search placeholder="Search recipes..."></wf-search></div>
</div>
<div class="component" id="datepicker">
<div class="component__header"><span class="component__name">DatePicker</span><span class="component__tag"><wf-datepicker></span><pre class="component__code"><wf-datepicker value="Jun 4, 2026"></wf-datepicker></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-datepicker value="Jun 4, 2026"></wf-datepicker></div>
</div>
<div class="component" id="checkbox">
<div class="component__header"><span class="component__name">Checkbox</span><span class="component__tag"><wf-checkbox></span><pre class="component__code"><wf-checkbox label="Option A"></wf-checkbox>
<wf-checkbox label="Option B" checked></wf-checkbox></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-checkbox label="Unchecked"></wf-checkbox>
<wf-checkbox label="Checked" checked></wf-checkbox>
</div>
</div>
<div class="component" id="radio">
<div class="component__header"><span class="component__name">Radio</span><span class="component__tag"><wf-radio></span><pre class="component__code"><wf-radio label="Option A" selected></wf-radio>
<wf-radio label="Option B"></wf-radio></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-radio label="Option A" selected></wf-radio>
<wf-radio label="Option B"></wf-radio>
</div>
</div>
<div class="component" id="toggle">
<div class="component__header"><span class="component__name">Toggle</span><span class="component__tag"><wf-toggle></span><pre class="component__code"><wf-toggle label="Dark mode"></wf-toggle>
<wf-toggle label="Enabled" on></wf-toggle></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-toggle label="Off"></wf-toggle>
<wf-toggle label="On" on></wf-toggle>
</div>
</div>
<div class="component" id="dropdown">
<div class="component__header"><span class="component__name">Dropdown</span><span class="component__tag"><wf-dropdown></span><pre class="component__code"><wf-dropdown items="Edit,Duplicate,Archive,Delete" label="Actions"></wf-dropdown></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="min-height:40px">
<wf-dropdown items="Edit,Duplicate,Archive,Delete" label="Actions"></wf-dropdown>
</div>
</div>
</div>
<!-- ===== DATA DISPLAY ===== -->
<div class="section" id="badge">
<div class="section__title">Data display</div>
<div class="component">
<div class="component__header"><span class="component__name">Badge</span><span class="component__tag"><wf-badge></span><pre class="component__code"><wf-badge>Default</wf-badge>
<wf-badge filled>Filled</wf-badge></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<span class="wf-badge">Default</span>
<wf-badge filled>Filled</wf-badge>
</div>
</div>
<div class="component" id="tag">
<div class="component__header"><span class="component__name">Tag</span><span class="component__tag"><wf-tag></span><pre class="component__code"><wf-tag>Java</wf-tag></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-tag>Java</wf-tag> <wf-tag>Spring</wf-tag> <wf-tag>Migration</wf-tag></div>
</div>
<div class="component" id="chip">
<div class="component__header"><span class="component__name">Chip</span><span class="component__tag"><wf-chip></span><pre class="component__code"><wf-chip>Filter</wf-chip>
<wf-chip removable>Removable</wf-chip></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-chip>Filter</wf-chip> <wf-chip removable>Removable</wf-chip></div>
</div>
<div class="component" id="avatar">
<div class="component__header"><span class="component__name">Avatar</span><span class="component__tag"><wf-avatar></span><pre class="component__code"><wf-avatar initials="AC"></wf-avatar>
<wf-avatar size="sm" initials="S"></wf-avatar>
<wf-avatar size="lg" initials="LG"></wf-avatar></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-avatar size="sm" initials="S"></wf-avatar>
<wf-avatar initials="MD"></wf-avatar>
<wf-avatar size="lg" initials="LG"></wf-avatar>
</div>
</div>
<div class="component" id="kv">
<div class="component__header"><span class="component__name">KeyValuePair</span><span class="component__tag"><wf-kv></span><pre class="component__code"><wf-kv key="Author" value="Moderne Team"></wf-kv></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--col" style="max-width:360px">
<wf-kv key="Author" value="Moderne Team"></wf-kv>
<wf-kv key="Category" value="Java / Spring"></wf-kv>
<wf-kv key="Last Updated" value="Jun 2, 2026"></wf-kv>
</div>
</div>
<div class="component" id="list-item">
<div class="component__header"><span class="component__name">ListItem</span><span class="component__tag"><wf-list-item></span><pre class="component__code"><wf-list-item title="Spring Boot Migration" subtitle="Java - 342 runs" trailing="2m ago"></wf-list-item></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--col" style="padding:0;background:var(--wf-surface)">
<wf-list-item title="Spring Boot Migration" subtitle="Java - 342 runs" trailing="2m ago"></wf-list-item>
<wf-list-item title="Dependency Update" subtitle="Maven - 128 runs" trailing="1h ago"></wf-list-item>
</div>
</div>
<div class="component" id="table">
<div class="component__header"><span class="component__name">Table</span><span class="component__tag"><wf-table></span><pre class="component__code"><wf-table rows="5" cols="4" headers="Name,Status,Role,Date"></wf-table></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-table rows="3" cols="3" headers="Name,Status,Date"></wf-table></div>
</div>
<div class="component" id="datagrid">
<div class="component__header"><span class="component__name">DataGrid</span><span class="component__tag"><wf-data-grid></span><pre class="component__code"><wf-data-grid rows="5" cols="4" headers="Recipe,Status,Repos,Date"></wf-data-grid></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-data-grid rows="3" cols="3" headers="Recipe,Status,Date"></wf-data-grid></div>
</div>
<div class="component" id="progress">
<div class="component__header"><span class="component__name">Progress</span><span class="component__tag"><wf-progress></span><pre class="component__code"><wf-progress value="72"></wf-progress></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="max-width:360px"><wf-progress value="72"></wf-progress></div>
</div>
<div class="component" id="diffstat">
<div class="component__header"><span class="component__name">DiffStat</span><span class="component__tag"><wf-diffstat></span><pre class="component__code"><wf-diffstat additions="24" deletions="8"></wf-diffstat></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-diffstat additions="24" deletions="8"></wf-diffstat></div>
</div>
</div>
<!-- ===== NAVIGATION ===== -->
<div class="section" id="breadcrumb">
<div class="section__title">Navigation</div>
<div class="component">
<div class="component__header"><span class="component__name">Breadcrumb</span><span class="component__tag"><wf-breadcrumb></span><pre class="component__code"><wf-breadcrumb items="Home,Recipes,Java,Spring Boot"></wf-breadcrumb></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-breadcrumb items="Home,Recipes,Java,Spring Boot"></wf-breadcrumb></div>
</div>
<div class="component" id="tabs">
<div class="component__header"><span class="component__name">Tabs</span><span class="component__tag"><wf-tabs></span><pre class="component__code"><wf-tabs items="Overview,Code Changes,History,Settings" active="0"></wf-tabs></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-tabs items="Overview,Code Changes,History,Settings" active="0"></wf-tabs></div>
</div>
<div class="component" id="pagination">
<div class="component__header"><span class="component__name">Pagination</span><span class="component__tag"><wf-pagination></span><pre class="component__code"><wf-pagination pages="12" active="3"></wf-pagination></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-pagination pages="12" active="3"></wf-pagination></div>
</div>
</div>
<!-- ===== FEEDBACK ===== -->
<div class="section" id="alert">
<div class="section__title">Feedback</div>
<div class="component">
<div class="component__header"><span class="component__name">Alert</span><span class="component__tag"><wf-alert></span><pre class="component__code"><wf-alert variant="info" title="Info">Message here.</wf-alert>
<wf-alert variant="success" title="Done">All good.</wf-alert>
<wf-alert variant="warning" title="Heads up">Check this.</wf-alert>
<wf-alert variant="error" title="Error">Failed.</wf-alert></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--col">
<wf-alert variant="info" title="Info">Informational message.</wf-alert>
<wf-alert variant="success" title="Success">Operation completed.</wf-alert>
<wf-alert variant="warning" title="Warning">Review before continuing.</wf-alert>
<wf-alert variant="error" title="Error">Something went wrong.</wf-alert>
</div>
</div>
<div class="component" id="banner">
<div class="component__header"><span class="component__name">Banner</span><span class="component__tag"><wf-banner></span><pre class="component__code"><wf-banner>Your message here.</wf-banner></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-banner>System maintenance tonight at 11pm ET.</wf-banner></div>
</div>
<div class="component" id="toast">
<div class="component__header"><span class="component__name">Toast</span><span class="component__tag"><wf-toast></span><pre class="component__code"><wf-toast>Recipe run completed</wf-toast></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview"><wf-toast>Recipe run completed</wf-toast></div>
</div>
<div class="component" id="modal">
<div class="component__header"><span class="component__name">Modal</span><span class="component__tag"><wf-modal></span><pre class="component__code"><wf-modal title="Confirm action" open>
<p>Are you sure?</p>
</wf-modal></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full" style="min-height:220px;position:relative;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.08)">
<div class="wf-modal" style="position:relative;box-shadow:3px 4px 0px rgba(0,0,0,0.1)">
<div class="wf-modal__header"><span class="wf-modal__title">Confirm action</span><button class="wf-modal__close">x</button></div>
<div class="wf-modal__body"><p style="font-size:14px;color:var(--wf-text-light)">Are you sure you want to continue?</p></div>
<div class="wf-modal__footer"><button class="wf-button">Cancel</button><button class="wf-button wf-button--primary">Confirm</button></div>
</div>
</div>
</div>
<div class="component" id="spinner">
<div class="component__header"><span class="component__name">Spinner</span><span class="component__tag">CSS class</span><pre class="component__code"><span class="wf-spinner"></span>
<span class="wf-spinner wf-spinner--sm"></span>
<span class="wf-spinner wf-spinner--lg"></span></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<span class="wf-spinner wf-spinner--sm"></span>
<span class="wf-spinner"></span>
<span class="wf-spinner wf-spinner--lg"></span>
</div>
</div>
<div class="component" id="empty-state">
<div class="component__header"><span class="component__name">EmptyState</span><span class="component__tag"><wf-empty-state></span><pre class="component__code"><wf-empty-state
title="No recipes found"
message="Try adjusting your search"
action="Create Recipe">
</wf-empty-state></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full" style="background:var(--wf-surface)">
<wf-empty-state title="No recipes found" message="Try adjusting your search or create a new recipe" action="Create Recipe"></wf-empty-state>
</div>
</div>
</div>
<!-- ===== CARDS & CHARTS ===== -->
<div class="section" id="card">
<div class="section__title">Cards & charts</div>
<div class="component">
<div class="component__header"><span class="component__name">Card</span><span class="component__tag"><wf-card></span><pre class="component__code"><wf-card title="Card Title" footer>
Your content here
</wf-card></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full">
<wf-card title="Card with footer" footer></wf-card>
</div>
</div>
<div class="component" id="stat-card">
<div class="component__header"><span class="component__name">StatCard</span><span class="component__tag"><wf-stat-card></span><pre class="component__code"><wf-stat-card label="Active Recipes" value="247" change="+12 this week"></wf-stat-card></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview">
<wf-stat-card label="Active Recipes" value="247" change="+12 this week"></wf-stat-card>
<wf-stat-card label="Success Rate" value="94.2%"></wf-stat-card>
</div>
</div>
<div class="component" id="chart">
<div class="component__header"><span class="component__name">Chart</span><span class="component__tag"><wf-chart></span><pre class="component__code"><wf-chart title="Weekly Recipe Runs" bars="7"></wf-chart></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-chart title="Weekly Recipe Runs" bars="7"></wf-chart></div>
</div>
</div>
<!-- ===== DEVELOPER ===== -->
<div class="section" id="code-snippet">
<div class="section__title">Developer</div>
<div class="component">
<div class="component__header"><span class="component__name">CodeSnippet</span><span class="component__tag"><wf-code-snippet></span><pre class="component__code"><wf-code-snippet language="yaml" lines="5"></wf-code-snippet>
<!-- Or with real content: -->
<wf-code-snippet language="java">
public class Main {
public static void main(String[] args) {}
}
</wf-code-snippet></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-code-snippet language="yaml" lines="5"></wf-code-snippet></div>
</div>
<div class="component" id="tree">
<div class="component__header"><span class="component__name">Tree</span><span class="component__tag"><wf-tree></span><pre class="component__code"><wf-tree depth="3" items="4"></wf-tree></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview" style="max-width:320px;background:var(--wf-surface)"><wf-tree depth="3" items="3"></wf-tree></div>
</div>
</div>
<!-- ===== ASSEMBLIES ===== -->
<div class="section" id="card-table">
<div class="section__title">Assemblies</div>
<div class="component">
<div class="component__header"><span class="component__name">CardTable</span><span class="component__tag"><wf-card-table></span><pre class="component__code"><wf-card-table title="Recipe Runs" rows="4"></wf-card-table></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-card-table title="Recipe Runs" rows="4"></wf-card-table></div>
</div>
<div class="component" id="filter-results">
<div class="component__header"><span class="component__name">FilterResults</span><span class="component__tag"><wf-filter-results></span><pre class="component__code"><wf-filter-results rows="4" headers="Repository,Status,Changes,Date" filters="Status,Language"></wf-filter-results></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-filter-results rows="4" headers="Repository,Status,Changes,Date" filters="Status,Language"></wf-filter-results></div>
</div>
<div class="component" id="data-table-layout">
<div class="component__header"><span class="component__name">DataTableLayout</span><span class="component__tag"><wf-data-table-layout></span><pre class="component__code"><wf-data-table-layout rows="5" headers="Name,Status,Type,Modified"></wf-data-table-layout></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-data-table-layout rows="5" headers="Name,Status,Type,Modified"></wf-data-table-layout></div>
</div>
<div class="component" id="changelog-feed">
<div class="component__header"><span class="component__name">ChangelogFeed</span><span class="component__tag"><wf-changelog-feed></span><pre class="component__code"><wf-changelog-feed entries="4"></wf-changelog-feed></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-changelog-feed entries="4"></wf-changelog-feed></div>
</div>
</div>
<!-- ===== COMPOSITIONS ===== -->
<div class="section" id="recipe-results">
<div class="section__title">Compositions</div>
<div class="component">
<div class="component__header"><span class="component__name">RecipeResults</span><span class="component__tag"><wf-recipe-results></span><pre class="component__code"><wf-recipe-results recipe="Migrate to Java 17" status="completed" repos="24" changes="18" errors="2"></wf-recipe-results></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-recipe-results recipe="Migrate to Java 17" status="completed" repos="24" changes="18" errors="2"></wf-recipe-results></div>
</div>
<div class="component" id="activation">
<div class="component__header"><span class="component__name">Activation</span><span class="component__tag"><wf-activation></span><pre class="component__code"><wf-activation headline="Welcome to Moderne" cta="Run your first recipe"
prereqs="Connect an SCM:done,Add repositories:done,Run first recipe:pending">
</wf-activation></pre><button class="component__copy-btn" onclick="copyCode(this)" aria-label="Copy code"><svg width="11" height="11" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5"/></svg>Copy code</button></div>
<div class="component__preview component__preview--full"><wf-activation headline="Welcome to Moderne" cta="Run your first recipe"></wf-activation></div>
</div>
</div>
</main>
</div>
<script>
// Search
const searchInput = document.getElementById('search');
const navItems = document.querySelectorAll('.nav-item');
searchInput.addEventListener('input', (e) => {
const q = e.target.value.toLowerCase();
navItems.forEach(item => {
const text = (item.textContent + ' ' + (item.dataset.search || '')).toLowerCase();
item.classList.toggle('hidden', q && !text.includes(q));
});
// Also hide group titles if all items in group are hidden
document.querySelectorAll('.nav-group__title').forEach(title => {
let next = title.nextElementSibling;
let anyVisible = false;
while (next && !next.classList.contains('nav-group__title')) {
if (next.classList.contains('nav-item') && !next.classList.contains('hidden')) anyVisible = true;
next = next.nextElementSibling;
}
title.style.display = (q && !anyVisible) ? 'none' : '';
});
});
// Active nav tracking
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
navItems.forEach(n => n.classList.remove('active'));
const link = document.querySelector(`.nav-item[href="#${entry.target.id}"]`);
if (link) link.classList.add('active');
}
});
}, { rootMargin: '-20% 0px -70% 0px' });
document.querySelectorAll('.component[id], .section[id]').forEach(el => observer.observe(el));
// Copy code
function copyCode(btn) {
const code = btn.parentElement.querySelector('.component__code');
if (!code) return;
navigator.clipboard.writeText(code.textContent.trim());
const orig = btn.innerHTML;
btn.textContent = 'Copied!';
setTimeout(() => { btn.innerHTML = orig; }, 1500);
}
</script>
</body>
</html>