/
lwc-html.json
1880 lines (1880 loc) · 69.5 KB
/
lwc-html.json
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
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"lwc-accordion": {
"body": [
"<lightning-accordion class=\"$1\"",
" onsectiontoggle={${2:clickHandler}}",
" active-section-name=\"${3:A}\">",
" <lightning-accordion-section name=\"${4:A}\" label=\"${5:Accordion Title1}\">",
" $0",
" </lightning-accordion-section>",
" <lightning-accordion-section name=\"${6:B}\" label=\"${7:Accordion Title2}\">",
"",
" </lightning-accordion-section>",
"",
" <lightning-accordion-section name=\"${8:C}\" label=\"${9:Accordion Title3}\">",
"",
" </lightning-accordion-section>",
"</lightning-accordion>"
],
"description": "Accordion - A collection of vertically stacked sections with multiple content areas.",
"prefix": "lwc-accordion"
},
"lwc-accordion-section": {
"body": [
"<lightning-accordion-section name=\"${1:X}\" label=\"${2:Accordion Title}\">",
" $0",
"</lightning-accordion-section>"
],
"description": "Accordion Section - Creates a lightning-accordion-section tag",
"prefix": "lwc-accordion-section"
},
"lwc-avatar": {
"body": ["<lightning-avatar src=\"${1:url}\"></lightning-avatar>"],
"description": "Avatar - A visual representation of an object.",
"prefix": "lwc-avatar"
},
"lwc-badge": {
"body": [
"<lightning-badge label=\"${1:Alpha}\"",
" class=\"${2|slds-badge_inverse,slds-badge_lightest,slds-theme_success,slds-theme_warning,slds-theme_error|}\"",
" icon-alternative-text=\"${3:The alternative text which is displayed as tooltip text.}\"",
" icon-name=\"${4:utility:activity}\"",
" icon-position=\"${5|start,end|}\"",
"></lightning-badge>"
],
"description": "Badge - Represents a label which holds a small amount of information, such as the number of unread notifications.",
"prefix": "lwc-badge"
},
"lwc-barcode-scanner": {
"body": [
"<lightning-barcode-scanner ",
" ${1|disabled,enabled|}",
" enable-continuous-scan=\"${2|false,true|}\"",
" enabled-icon-src=\"${3:enabledSrc}\"",
" enabled-alternative-text=\"${4:enabled state description}\"",
" disabled-icon-src=\"${5:disabledSrc}\"",
" disabled-alternative-text=\"${6:disabled state description}\"",
" icon-size=\"medium\"",
" scanner-options={${7:barcodeScannerConfig}}",
"></lightning-barcode-scanner>"
],
"description": "Barcode Scanner - The lightning-barcode-scanner component embeds a barcode scanning function displayed as an icon, which launches the barcode scanner when the user clicks it.",
"prefix": "lwc-barcode-scanner"
},
"lwc-breadcrumb-link": {
"body": [
"<lightning-breadcrumb",
" label=\"${1:Parent Account}\"",
" href=\"${2:path/to/place/1}\"",
"></lightning-breadcrumb>"
],
"description": "Breadcrumb (element) w/ link navigation - Displays the individual page path relative to a parent page",
"prefix": "lwc-breadcrumb-link"
},
"lwc-breadcrumb-onclick": {
"body": [
"<lightning-breadcrumb",
" label=\"${1:Parent Account}\"",
" href=\"${2:path/to/place/1}\"",
" onclick={${3:handleNavigateToCustomPage1}}",
"></lightning-breadcrumb>"
],
"description": "Breadcrumb (element) w/ onClick handler - Displays the individual page path relative to a parent page",
"prefix": "lwc-breadcrumb-onclick"
},
"lwc-breadcrumbs-for-each-loop": {
"body": [
"<lightning-breadcrumbs>",
" <template for:each={${1:myBreadcrumbs}} for:item=\"${2:crumb}\">",
" <lightning-breadcrumb",
" key={${2:crumbs}.id}",
" label={${2:crumbs}.label}",
" name={${2:crumbs}.name}",
" onclick={${3:onClickHandler}}>",
" </lightning-breadcrumb>",
" </template>",
"</lightning-breadcrumbs>"
],
"description": "Breadcrumbs w/ for each loop - Displays the path of a page relative to a parent page.",
"prefix": "lwc-breadcrumbs-for-each-loop"
},
"lwc-breadcrumbs-link": {
"body": [
"<lightning-breadcrumbs>",
" <lightning-breadcrumb",
" label=\"${1:Parent Account}\"",
" href=\"${2:path/to/place/1}\"",
" ></lightning-breadcrumb>",
" <lightning-breadcrumb",
" label=\"${3:Case}\"",
" href=\"${4:path/to/place/2}\"",
" ></lightning-breadcrumb>",
"</lightning-breadcrumbs>"
],
"description": "Breadcrumbs w/ link navigation - Displays the path of a page relative to a parent page.",
"prefix": "lwc-breadcrumbs-link"
},
"lwc-breadcrumbs-onclick": {
"body": [
"<lightning-breadcrumbs>",
" <lightning-breadcrumb",
" label=\"${1:Parent Account}\"",
" href=\"${2:path/to/place/1}\"",
" onclick={${3:handleNavigateToCustomPage1}}",
" >",
" </lightning-breadcrumb>",
" <lightning-breadcrumb",
" label=\"${4:Case}\"",
" href=\"${5:path/to/place/2}\"",
" onclick={${6:handleNavigateToCustomPage2}}",
" >",
" </lightning-breadcrumb>",
"</lightning-breadcrumbs>"
],
"description": "Breadcrumbs w/ onclick handler - Displays the path of a page relative to a parent page.",
"prefix": "lwc-breadcrumbs-onclick"
},
"lwc-button": {
"body": [
"<lightning-button ",
" variant=\"${1|base,neutral,brand,brand-outline,destructive,destructive-text,inverse,success|}\"",
" label=\"${2:Button Label}\" ",
" onclick={${3:handleClick}} ",
"></lightning-button>"
],
"description": "Button - A clickable element used to perform an action.",
"prefix": "lwc-button"
},
"lwc-button-advanced": {
"body": [
"<lightning-button ",
" variant=\"${1|base,neutral,brand,brand-outline,destructive,destructive-text,inverse,success|}\"",
" label=\"${2:Button Label}\" ",
" title=\"${3:Looks like a link}\" ",
" value=\"${4}\" ",
" type=\"${5|button,reset,submit|}\"",
" onclick={${6:handleClick}} ",
" stretch=\"${7|false,true|}\" ",
" icon-name=\"${8:utility:activity}\"",
" icon-position=\"${9|left,right|}\"",
" class=\"${10}\"",
"></lightning-button>"
],
"description": "Button Advanced - A clickable element used to perform an action.",
"prefix": "lwc-button-advanced"
},
"lwc-button-group": {
"body": [
"<lightning-button-group>",
" <lightning-button label=\"${1:Refresh}\"></lightning-button>",
" <lightning-button label=\"${2:Edit}\"></lightning-button>",
" <lightning-button label=\"${3:Save}\"></lightning-button>",
"</lightning-button-group>"
],
"description": "Button Group - Represents a set of buttons that can be displayed together to create a navigational bar.",
"prefix": "lwc-button-group"
},
"lwc-button-group-dropdown-menu": {
"body": [
"<lightning-button-group>",
" <lightning-button label=\"${1:Refresh}\"></lightning-button>",
" <lightning-button label=\"${2:Edit}\"></lightning-button>",
" <lightning-button label=\"${3:Save}\"></lightning-button>",
" <lightning-button-menu alternative-text=\"Show menu\" variant=\"border-filled\">",
" <lightning-menu-item label=\"${4:Menu Item One}\" value=\"${5:menuOne}\"></lightning-menu-item>",
" <lightning-menu-item label=\"${6:Menu Item Two}\" value=\"${7:menuTwo}\"></lightning-menu-item>",
" <lightning-menu-item label=\"${8:Menu Item Three}\" value=\"${9:menuThree}\"></lightning-menu-item>",
" </lightning-button-menu>",
"</lightning-button-group>"
],
"description": "Button Group w/ Dropdown Menu - Represents a set of buttons that can be displayed together to create a navigational bar.",
"prefix": "lwc-button-group-dropdown-menu"
},
"lwc-button-icon": {
"body": [
"<lightning-button-icon ",
" icon-class=\"${1}\"",
" icon-name=\"${2:utility:adduser}\"",
" alternative-text=\"${3:Add user}\"",
" class=\"${4}\"",
" name=\"${5}\"",
" size=\"${6|xx-small,x-small,small,medium,large|}\"",
" title=\"${7}\"",
" tooltip=\"${8}\"",
" type=\"${9|button,reset,submit|}\"",
" value=\"${10}\"",
" variant=\"${11|bare,bare-inverse,border,border-filled,border-inverse,brand,container|}\"",
"></lightning-button-icon>"
],
"description": "Button Icon - An icon-only HTML button.",
"prefix": "lwc-button-icon"
},
"lwc-button-icon-stateful": {
"body": [
"<lightning-button-icon-stateful ",
" alternative-text=\"${1:Like user}\"",
" icon-class=\"${2}\"",
" icon-name=\"${3:utility:like}\"",
" onclick={${4:clickHandler}}",
" selected={${5:likeState}}",
" size=\"${6|xx-small,x-small,small,medium|}\"",
" value=\"${7}\"",
" variant=\"${8|border,border-filled,border-inverse|}\"",
"></lightning-button-icon-stateful>"
],
"description": "Button Icon Stateful - represents an icon-only button element that toggles between two states.",
"prefix": "lwc-button-icon-stateful"
},
"lwc-button-menu": {
"body": [
"<lightning-button-menu ",
" alternative-text=\"${1:Show menu}\"",
" icon-name=\"${2:utility:down}\"",
" icon-size=\"${3|xx-small,x-small,small,medium, large|}\"",
" label=\"${4}\"",
" onclick={${5:clickHandler}}",
" variant=\"${6|bare,bare-inverse,border,border-filled,border-inverse,brand,container|}\"",
">",
" <lightning-menu-item value=\"${7:menuItemOne}\" label=\"${8:Menu Item One}\"></lightning-menu-item>",
" <lightning-menu-item value=\"${9:menuItemTwo}\" label=\"${10:Menu Item Two}\"></lightning-menu-item>",
" <lightning-menu-item value=\"${11:menuItemThree}\" label=\"${12:Menu Item Three}\"></lightning-menu-item>",
"</lightning-button-menu>"
],
"description": "Button Menu - represents a dropdown menu with a list of actions or functions.",
"prefix": "lwc-button-menu"
},
"lwc-button-stateful": {
"body": [
"<lightning-button-stateful",
" label-when-off=\"${1:Follow}\"",
" label-when-on=\"${2:Following}\"",
" label-when-hover=\"${3:Unfollow}\"",
" icon-name-when-off=\"${5:utility:add}\"",
" icon-name-when-on=\"${6:utility:check}\"",
" icon-name-when-hover=\"${7:utility:close}\"",
" selected={${8:isSelected}}",
" onclick={${9:handleClick}}",
" variant=\"${10|brand,destructive,inverse,neutral,success,text|}\"",
"></lightning-button-stateful>"
],
"description": "Button Stateful - A button that toggles between states.",
"prefix": "lwc-button-stateful"
},
"lwc-card": {
"body": [
"<lightning-card icon-name=\"${1:standard:account}\" variant=\"${2|base,narrow|}\">",
" <div slot=\"title\">",
" ${3:Card Title}",
" </div>",
" <div slot=\"actions\">",
"",
" </div>",
" <div slot=\"footer\">",
"",
" </div>",
" <div>",
" <!-- Card Body -->",
" $0",
" </div>",
"</lightning-card>"
],
"description": "Card - Cards apply a container around a related grouping of information.",
"prefix": "lwc-card"
},
"lwc-carousel": {
"body": [
"<lightning-carousel ${1| ,disable-auto-scroll|} ${2| ,disable-auto-refresh|} scroll-duration=\"${3:5}\">",
" <lightning-carousel-image",
" src=\"${4}\"",
" header=\"${5:First Card}\"",
" description=\"${6:First card description.}\"",
" alternative-text=\"${7:First card accessible description.}\"",
" href=\"${8:javascript:void(0);}\">",
" </lightning-carousel-image>",
" <lightning-carousel-image",
" src=\"${9}\"",
" header=\"${10:Second Card}\"",
" description=\"${11:Second card description.}\"",
" alternative-text=\"${12:Second card accessible description.}\"",
" href=\"${13:javascript:void(0);}\">",
" </lightning-carousel-image>",
" <lightning-carousel-image",
" src=\"${14}\"",
" header=\"${15:Third Card}\"",
" description=\"${16:Third card description.}\"",
" alternative-text=\"${17:Third card accessible description.}\"",
" href=\"${18:javascript:void(0);}\">",
" </lightning-carousel-image>",
"</lightning-carousel>"
],
"description": "Carousel - A collection of images that are displayed one at a time.",
"prefix": "lwc-carousel"
},
"lwc-carousel-image": {
"body": [
"<lightning-carousel-image",
" src=\"${1}\"",
" header=\"${2:Card}\"",
" description=\"${3:Card description.}\"",
" alternative-text=\"${4:Card accessible description.}\"",
" href=\"${5:javascript:void(0);}\"",
"></lightning-carousel-image>"
],
"description": "Carousel Image - Specifies an image used in lighting-carousel, including description and title.",
"prefix": "lwc-carousel-image"
},
"lwc-checkbox-group": {
"body": [
"<lightning-checkbox-group name=\"${1:Checkbox Group}\"",
" label=\"${2:Checkbox Group}\"",
" options={${3:options}}",
" value={${4:value}}",
" message-when-value-missing=\"${5:Optional message to be displayed when no checkbox is selected and the required attribute is set.}\"",
" onchange={${6:handleChange}}",
" variant=\"${7|standard,label-hidden,label-inline,label-stacked|}\"",
" ${8| ,disabled|}",
" ${9| ,required|}",
"></lightning-checkbox-group>"
],
"description": "Checkbox Group - A checkbox group that enables a selection of single or multiple options.",
"prefix": "lwc-checkbox-group"
},
"lwc-click-to-dial": {
"body": [
"<lightning-click-to-dial ",
" value=\"${1:4445559999}\" ",
" record-id=\"${2:500xxxxxxxxxxxx}\" ",
" params=\"${3:accountSid=xxx,sourceId=xxx,apiVersion=123}\"",
"></lightning-click-to-dial>"
],
"description": "Click To Dial - Renders a formatted phone number as click-to-dial enabled or disabled for Open CTI and Voice.",
"prefix": "lwc-click-to-dial"
},
"lwc-combobox": {
"body": [
"<lightning-combobox",
" name=\"${1:progress}\"",
" label=\"${2:Status}\"",
" value={${3:value}}",
" placeholder=\"${4:Select Progress}\"",
" options={${5:options}}",
" onchange={${6:handleChange}} ",
" ${7| ,disabled|}",
" ${8| ,required|}",
"></lightning-combobox>"
],
"description": "Combobox - A widget that provides an input field that is readonly, accompanied by a dropdown list of selectable options.",
"prefix": "lwc-combobox"
},
"lwc-combobox-advanced": {
"body": [
"<lightning-combobox",
" field-level-help=\"${1:Help text detailing the purpose and function of the combobox.}\"",
" label=\"${2:Status}\"",
" message-when-value-missing=\"${3:Optional message to be displayed when no checkbox is selected and the required attribute is set.}\"",
" name=\"${4:progress}\"",
" options={${5:options}}",
" onchange={${6:handleChange}} ",
" placeholder=\"${7:Select Progress}\"",
" value={${8:value}}",
" variant=\"${9|standard,label-hidden,label-inline,label-stacked|}\"",
" ${10| ,disabled|}",
" ${11| ,read-only|}",
" ${12| ,required|}",
"></lightning-combobox>"
],
"description": "Combobox Advanced - All attributes. A widget that provides an input field that is readonly, accompanied by a dropdown list of selectable options.",
"prefix": "lwc-combobox-advanced"
},
"lwc-datatable": {
"body": [
"<lightning-datatable",
" key-field=\"${1:id}\"",
" data={${2:data}}",
" columns={${3:columns}}",
"></lightning-datatable>"
],
"description": "Datatable - A table that displays rows and columns of data",
"prefix": "lwc-datatable"
},
"lwc-datatable-advanced": {
"body": [
"<lightning-datatable",
" key-field=\"${1:id}\"",
" column-widths-mode=${2|auto,fixed|}",
" columns={${3:columns}}",
" data={${4:data}}",
" default-sort-direction={${5:defaultSortDirection}}",
" ${6| ,enable-infinite-loading|}",
" ${7| ,hide-checkbox-column|}",
" ${8| ,hide-table-header|}",
" load-more-offset=\"${9:20}\"",
" max-column-width=\"${10:1000}\"",
" max-row-selection=\"${11}\"",
" min-column-width=\"${12:50}\"",
" onsort={${13:onHandleSort}}",
" onrowaction={${14:handleRowAction}}",
" ${15| ,resize-column-disabled|}",
" resize-step=\"${16:10}\"",
" row-number-offset=\"${17:0}\"",
" ${18| ,show-row-number-column|}",
" sorted-by={${19:sortedBy}}",
" sorted-direction={${20:sortDirection}}",
"></lightning-datatable>"
],
"description": "Datatable Advanced - All attributes, a table that displays rows and columns of data",
"prefix": "lwc-datatable-advanced"
},
"lwc-dual-listbox": {
"body": [
"<lightning-dual-listbox name=\"${1:languages}\"",
" label=\"${2:Select Languages}\"",
" source-label=\"${3:Available}\"",
" selected-label=\"${4:Selected}\"",
" field-level-help=\"${5:Select your preferred languages}\"",
" options={${6:options}}",
" onchange={${7:handleChange}}",
"></lightning-dual-listbox>"
],
"description": "Dual Listbox - A pair of listboxes that enables multiple options to be selected and reordered.",
"prefix": "lwc-dual-listbox"
},
"lwc-dual-listbox-default-values": {
"body": [
"<lightning-dual-listbox name=\"${1:languages}\"",
" label=\"${2:Select Languages}\"",
" source-label=\"${3:Available}\"",
" selected-label=\"${4:Selected}\"",
" field-level-help=\"${5:Select your preferred languages}\"",
" options={${6:options}}",
" onchange={${7:handleChange}}",
" value={${8:values}}",
"></lightning-dual-listbox>"
],
"description": "Dual Listbox with default values - Dual Listbox utilizing minimum and maximum number of selections attributes. A pair of listboxes that enables multiple options to be selected and reordered.",
"prefix": "lwc-dual-listbox-default-values"
},
"lwc-dual-listbox-min-max": {
"body": [
"<lightning-dual-listbox name=\"${1:languages}\"",
" label=\"${2:Select Languages}\"",
" source-label=\"${3:Available}\"",
" selected-label=\"${4:Selected}\"",
" field-level-help=\"${5:Select your preferred languages}\"",
" min={${6:min}}",
" max={${7:max}}",
" options={${8:options}}",
" onchange={${9:handleChange}}",
"></lightning-dual-listbox>"
],
"description": "Dual Listbox Min Max - Dual Listbox utilizing minimum and maximum number of selections attributes. A pair of listboxes that enables multiple options to be selected and reordered.",
"prefix": "lwc-dual-listbox-min-max"
},
"lwc-dual-listbox-required-options": {
"body": [
"<lightning-dual-listbox name=\"${1:languages}\"",
" label=\"${2:Select Languages}\"",
" source-label=\"${3:Available}\"",
" selected-label=\"${4:Selected}\"",
" field-level-help=\"${5:Select your preferred languages}\"",
" options={${6:options}}",
" onchange={${7:handleChange}}",
" required-options={${8:requiredOptions}}",
" value={${9:values}}",
"></lightning-dual-listbox>"
],
"description": "Dual Listbox with Required Options - Dual Listbox utilizing minimum and maximum number of selections attributes. A pair of listboxes that enables multiple options to be selected and reordered.",
"prefix": "lwc-dual-listbox-required-options"
},
"lwc-dynamic-icon": {
"body": [
"<lightning-dynamic-icon ",
" type=\"${1|ellie,eq,score,strength,trend,waffle|}\" ",
" alternative-text=\"${2:Text that describes what is happening not what the icon looks like.}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon - Represents various animated icons with different states.",
"prefix": "lwc-dynamic-icon"
},
"lwc-dynamic-icon-ellie": {
"body": [
"<lightning-dynamic-icon ",
" type=\"ellie\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon Ellie - Show a pulsing blue circle, which pulses and stops after one animation cycle. This icon is great for field calculations or a process that's running in the background.",
"prefix": "lwc-dynamic-icon-ellie"
},
"lwc-dynamic-icon-eq": {
"body": [
"<lightning-dynamic-icon ",
" type=\"eq\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
" option=\"${2|play,stop|}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon EQ - Show an animated graph with three bars that rise and fall randomly. This icon is great for a graph that's refreshing.",
"prefix": "lwc-dynamic-icon-eq"
},
"lwc-dynamic-icon-score": {
"body": [
"<lightning-dynamic-icon ",
" type=\"score\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
" option=\"${2|positive,negative|}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon Score - Show a green filled circle or a red unfilled circle. This icon is great for showing positive and negative indicators.",
"prefix": "lwc-dynamic-icon-score"
},
"lwc-dynamic-icon-strength": {
"body": [
"<lightning-dynamic-icon ",
" type=\"strength\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
" option=\"${2:0}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon Strength - Show three animated horizontal circles that are colored green or red. This icon is great for Einstein calculations or indicating password strengths.",
"prefix": "lwc-dynamic-icon-strength"
},
"lwc-dynamic-icon-trend": {
"body": [
"<lightning-dynamic-icon ",
" type=\"trend\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
" option=\"${2|neutral,up,down|}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon Trend - Show animated arrows that point up, down, or straight. This icon is great for showing movement of a value from one range to another, like a forecast score.",
"prefix": "lwc-dynamic-icon-trend"
},
"lwc-dynamic-icon-waffle": {
"body": [
"<lightning-dynamic-icon ",
" type=\"waffle\" ",
" alternative-text=\"${1:Text that describes what is happening not what the icon looks like.}\"",
"></lightning-dynamic-icon>"
],
"description": "Dynamic Icon Waffle - Show a square made up of a 3x3 grid of circles. This icon animates on hover. This icon is great for app-related items, like the App Launcher in Lightning Experience.",
"prefix": "lwc-dynamic-icon-waffle"
},
"lwc-file-upload": {
"body": [
"<lightning-file-upload",
" label=\"${1:Attach receipt}\"",
" name=\"${2:fileUploader}\"",
" accept={${3:acceptedFormats}}",
" record-id={${4:myRecordId}}",
" onuploadfinished={${5:handleUploadFinished}}",
" ${6| ,multiple|}",
"></lightning-file-upload>"
],
"description": "File Upload - provides an easy and integrated way for users to upload multiple files.",
"prefix": "lwc-file-upload"
},
"lwc-flow": {
"body": [
"<lightning-flow",
" flow-api-name=\"${1:Survey_customers}\"",
" flow-finish-behavior=\"${2|RESTART,NONE|}\"",
" flow-input-variables={${3:inputVariables}}",
" flow-interview-id=\"${4}\"",
" onstatuschange={${5:handleStatusChange}}",
"></lightning-flow>"
],
"description": "Flow - Represents a flow interview",
"prefix": "lwc-flow"
},
"lwc-formatted-address": {
"body": [
"<lightning-formatted-address",
" street=\"${1:121 Spear St.}\"",
" city=\"${2:San Francisco}\"",
" country=\"${3:US}\"",
" province=\"${4:CA}\"",
" postal-code=\"${5:94105}\"",
"></lightning-formatted-address>"
],
"description": "Formatted Address - Displays a formatted address with a link to the given location on Google Maps. The link is opened in a new tab. A static map can be displayed with the address for better context.",
"prefix": "lwc-formatted-address"
},
"lwc-formatted-address-extended": {
"body": [
"<lightning-formatted-address",
" street=\"${1:121 Spear St.}\"",
" city=\"${2:San Francisco}\"",
" country=\"${3:US}\"",
" ${4| ,disabled|}",
" locale=\"${5}\"",
" province=\"${6:CA}\"",
" postal-code=\"${7:94105}\"",
" show-static-map=\"${8|false,true|}\"",
"></lightning-formatted-address>"
],
"description": "Formatted Address Extended - All attributes. Displays a formatted address with a link to the given location on Google Maps. The link is opened in a new tab. A static map can be displayed with the address for better context.",
"prefix": "lwc-formatted-address-extended"
},
"lwc-formatted-address-lat-long": {
"body": [
"<lightning-formatted-address",
" street=\"${1:121 Spear St.}\"",
" city=\"${2:San Francisco}\"",
" country=\"${3:US}\"",
" latitude=\"${4:37.792179}\"",
" longitude=\"${5:-122.392735}\"",
" province=\"${6:CA}\"",
" postal-code=\"${7:94105}\"",
"></lightning-formatted-address>"
],
"description": "Formatted Address w/ Lat/Long - Using latitude and longitude coordinates for faster map rendering. Displays a formatted address with a link to the given location on Google Maps. The link is opened in a new tab. A static map can be displayed with the address for better context.",
"prefix": "lwc-formatted-address-lat-long"
},
"lwc-formatted-address-locale": {
"body": [
"<lightning-formatted-address",
" street=\"${1:Avenida Concha Espina, Nº 1}\"",
" city=\"${2:Madrid}\"",
" postal-code=\"${3:28036}\"",
" country=\"${4:España}\"",
" locale=\"${5:es-ES}\"",
"></lightning-formatted-address>"
],
"description": "Formatted Address Locale - Displays an address in the format of a specific locale.",
"prefix": "lwc-formatted-address-locale"
},
"lwc-formatted-date-time": {
"body": [
"<lightning-formatted-date-time ",
" value=\"${1}\"",
" era=\"${2|short,narrow,long|}\"",
" day=\"${3|2-digit,numeric|}\"",
" month=\"${4|2-digit,long,narrow,short|}\"",
" year=\"${5|2-digit,numeric|}\"",
" hour=\"${6|2-digit,numeric|}\"",
" hour12=\"${7|false,true|}\"",
" weekday=\"${8|long,narrow,short|}\"",
" minute=\"${9|2-digit,numeric|}\"",
" second=\"${10|2-digit,numeric|}\"",
" time-zone=\"${11}\"",
" time-zone-name=\"${12|long,short|}\"",
"></lightning-formatted-date-time>"
],
"description": "Formatted Date Time - Displays formatted date and time",
"prefix": "lwc-formatted-date-time"
},
"lwc-formatted-date-time-date": {
"body": [
"<lightning-formatted-date-time",
" value=\"${1}\"",
" day=\"${2|2-digit,numeric|}\"",
" month=\"${3|2-digit,long,narrow,short|}\"",
" year=\"${4|2-digit,numeric|}\"",
" weekday=\"${5|long,narrow,short|}\"",
"></lightning-formatted-date-time-date>"
],
"description": "Formatted Date",
"prefix": "lwc-formatted-date-time-date"
},
"lwc-formatted-date-time-time": {
"body": [
"<lightning-formatted-date-time ",
" value=\"${1}\"",
" hour=\"${2|2-digit,numeric|}\"",
" hour12=\"${3|false,true|}\"",
" minute=\"${4|2-digit,numeric|}\"",
" second=\"${5|2-digit,numeric|}\"",
" time-zone=\"${6}\"",
" time-zone-name=\"${7|long,short|}\"",
"></lightning-formatted-date-time>"
],
"description": "Formatted Time",
"prefix": "lwc-formatted-date-time-time"
},
"lwc-formatted-email": {
"body": [
"<lightning-formatted-email ",
" value=\"${1}\"",
" hide-icon=\"${2|false,true|}\"",
" label=\"${3}\"",
"></lightning-formatted-email>"
],
"description": "Formatted Email - Displays an email as a hyperlink with the mailto: URL scheme.",
"prefix": "lwc-formatted-email"
},
"lwc-formatted-email-onclick": {
"body": [
"<lightning-formatted-email ",
" value=\"${1}\"",
" onclick={${2:clickHandler}}",
" hide-icon=\"${3|false,true|}\"",
" label=\"${4}\"",
"></lightning-formatted-email>"
],
"description": "Formatted Email OnClick- Displays an email as a hyperlink with a custom click hander.",
"prefix": "lwc-formatted-email-onclick"
},
"lwc-formatted-location": {
"body": [
"<lightning-formatted-location ",
" latitude=\"${1:37.7897934824985}\" ",
" longitude=\"${2:-122.39693871489587}\"",
"></lightning-formatted-location>"
],
"description": "Formatted Location - Displays a geolocation in decimal degrees using the format [latitude, longitude].",
"prefix": "lwc-formatted-location"
},
"formatted-name": {
"body": [
"<lightning-formatted-name",
" format=\"${1|short,medium,long|}\"",
" first-name=\"${2:John}\"",
" last-name=\"${3:Doe}\"",
" middle-name=\"${4:Middleton}\"",
" informal-name=\"${5:Jack}\"",
" suffix=\"${6:Sr.}\"",
" salutation=\"${7:Mr.}\"",
"></lightning-formatted-name>"
],
"description": "Formatted Name - Displays a formatted name that can include a salutation and suffix.",
"prefix": "lwc-formatted-name"
},
"lwc-formatted-number-currency": {
"body": [
"<lightning-formatted-number ",
" value=\"${1:12.34}\"",
" format-style=\"currency\"",
" currency-code=\"${2:USD}\"",
" currency-display-as=\"${3|symbol,code,name|}\"",
"></lightning-formatted-number>"
],
"description": "Formatted Number Currency - Displays formatted numbers as currency values",
"prefix": "lwc-formatted-number-currency"
},
"lwc-formatted-number-decimal": {
"body": [
"<lightning-formatted-number ",
" value=\"${1:12.34}\" ",
" format-style=\"decimal\" ",
" maximum-fraction-digits=\"${2}\"",
" maximum-significant-digits=\"${3|1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21|}\"",
" minimum-fraction-digits=\"${4}\"",
" minimum-integer-digits=\"${5|1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21|}\"",
" minimum-significant-digits=\"${6|1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21|}\"",
"></lightning-formatted-number>"
],
"description": "Formatted Number Decimal - Displays formatted numbers in decimals format.",
"prefix": "lwc-formatted-number-decimal"
},
"lwc-formatted-number-percentage": {
"body": [
"<lightning-formatted-number ",
" value=\"${1:0.1234}\" ",
" format-style=\"percent\" ",
" maximum-fraction-digits=\"${2:2}\"",
" minimum-fraction-digits=\"${3:2}\"",
"></lightning-formatted-number>"
],
"description": "Formatted Number Percentage - Displays a number in percentage format.",
"prefix": "lwc-formatted-number-percentage"
},
"lwc-formatted-phone": {
"body": [
"<lightning-formatted-phone ",
" value=\"${1:8005551212}\"",
" ${2| ,disabled|} ",
"></lightning-formatted-phone>"
],
"description": "Formatted Phone - Displays a phone number as a hyperlink with the tel: URL scheme.",
"prefix": "lwc-formatted-phone"
},
"lwc-formatted-rich-text": {
"body": [
"<lightning-formatted-rich-text",
" value={${1:richtext}}",
" ${2| ,disable-linkify|}",
"></lightning-formatted-rich-text>"
],
"description": "Formatted Rich Text - Displays rich text that's formatted with allowed tags and attributes. Other tags and attributes are removed and only their text content is displayed.",
"prefix": "lwc-formatted-rich-text"
},
"lwc-formatted-text": {
"body": [
"<lightning-formatted-text ",
" value=\"${1:Email salesforce.com and info.salesforce.com}\"",
" ${2| ,linkify|}",
"></lightning-formatted-text>"
],
"description": "Formatted Text - Displays text, replaces newlines with line breaks, and linkifies if requested.",
"prefix": "lwc-formatted-text"
},
"lwc-formatted-time": {
"body": [
"<lightning-formatted-time ",
" value=\"${1:22:12:30.999Z}\"",
"></lightning-formatted-time>"
],
"description": "Formatted Time - Displays a formatted time in user's locale format.",
"prefix": "lwc-formatted-time"
},
"lwc-formatted-url": {
"body": [
"<lightning-formatted-url ",
" value=\"${1:https://salesforce.com}\"",
" tooltip=\"${2:Use https://domain-name}\"",
" label=\"${3:Visit salesforce.com}\"",
" target=\"${4:_blank}\"",
"></lightning-formatted-url>"
],
"description": "Formatted URL - Displays a URL as a hyperlink.",
"prefix": "lwc-formatted-url"
},
"lwc-helptext": {
"body": [
"<lightning-helptext ",
" content=\"${1:Here is a helpful message}\"",
"></lightning-helptext>"
],
"description": "Helptext - An icon with a text popover used for tooltips.",
"prefix": "lwc-helptext"
},
"lwc-icon": {
"body": [
"<lightning-icon ",
" icon-name=\"${1:utility:connected_apps}\" ",
" alternative-text=\"${2:Connected}\" ",
" size=\"${3|xx-small,x-small,small,medium,large|}\" ",
" title=\"${4:large size}\"",
" variant=\"${5|inverse,success,warning,error|}\"",
"></lightning-icon>"
],
"description": "Icon - Represents a visual element that provides context and enhances usability.",
"prefix": "lwc-icon"
},
"lwc-input": {
"body": [
"<lightning-input ",
" type=\"${1|text,checkbox,checkbox-button,color,date,datetime,time,email,file,password,range,search,tel,url,number,toggle|}\"",
" label=\"${2:Enter some text}\"",
"></lightning-input>"
],
"description": "Input - Represents interactive controls that accept user input depending on the type attribute.",
"prefix": "lwc-input"
},
"lwc-input-address": {
"body": [
"<lightning-input-address",
" address-label=\"${1:Address}\"",
" street-label=\"${2:Street}\"",
" city-label=\"${3:City}\"",
" country-label=\"${4:Country}\"",
" province-label=\"${5:Province}\"",
" postal-code-label=\"${6:PostalCode}\"",
" street=\"${7:121 Spear St.}\"",
" city=\"${8:San Francisco}\"",
" country=\"${9:US}\"",
" province=\"${10:CA}\"",
" postal-code=\"${11:94105}\"",
" ${12| ,required|}",
" field-level-help=\"${13:Help Text for input-address field}\" ",
"></lightning-input-address>"
],
"description": "Input Address - Address fields can be pre-populated and marked as required.",
"prefix": "lwc-input-address"
},
"lwc-input-address-state-country-picklists": {
"body": [
"<lightning-input-address",
" address-label=\"${1:Address}\"",
" street-label=\"${2:Street}\"",
" city-label=\"${3:City}\"",
" country-label=\"${4:Country}\"",
" province-label=\"${5:Province}\"",
" postal-code-label=\"${6:PostalCode}\"",
" street=\"${7:121 Spear St.}\"",
" city=\"${8:San Francisco}\"",
" country=\"${9:US}\"",
" province=\"${10:CA}\"",
" postal-code=\"${11:94105}\"",
" field-level-help=\"${12:Help Text for input-address field}\" ",
" country-options={${13:getCountryOptions}}",
" province-options={${14:getProvinceOptions}}",
" onchange={${15:handleChange}} ",
"></lightning-input-address>"
],
"description": "Input Address - Address fields support predefined lists of states and countries.",
"prefix": "lwc-input-address-state-country-picklists"
},
"lwc-input-advanced": {
"body": [
"<lightning-input ",
" type=\"${1|text,checkbox,checkbox-button,color,date,datetime,time,email,file,password,range,search,tel,url,number,toggle|}\" ",
" label=\"${2:Enter some text}\" ",
" onfocus={${3:handleInputFocus}} ",
" onblur={${4:handleInputBlur}}",
"></lightning-input>"
],
"description": "Input (advanced) - Input element that includes onfocus and onblur attributes to enable custom behavior on the element.",
"prefix": "lwc-input-advanced"
},
"lwc-input-checkbox": {
"body": [
"<lightning-input ",
" type=\"checkbox\"",
" label=\"${1:Basic option}\"",
" name=\"${2:input1}\"",
" ${3| ,checked|}",
" ${4| ,disabled|}",
" ${5| ,required|}",
"></lightning-input>"
],
"description": "Input Checkbox - Checkbox options can be required or disabled",
"prefix": "lwc-input-checkbox"
},
"lwc-input-checkbox-button": {
"body": [
"<lightning-input ",
" type=\"checkbox-button\" ",
" label=\"${1:Basic option}\"",
" name=\"${2:input1}\"",
" ${3| ,checked|}",
" ${4| ,disabled|}",
" ${5| ,required|}",
"></lightning-input>"
],
"description": "Input Checkbox Button - Checkbox buttons can be required or disabled",
"prefix": "lwc-input-checkbox-button"
},
"lwc-input-color": {
"body": [
"<lightning-input ",
" type=\"color\" ",
" name=\"${1:input-color}\" ",
" label=\"${2:Favorite color}\"",
" value=\"${3:#8DC141}\"",
"></lightning-input>"
],
"description": "Input Color - Color input fields provide a color swatch for entering a HEX or RGB value.",
"prefix": "lwc-input-color"
},
"lwc-input-date": {
"body": [
"<lightning-input ",
" type=\"date\" ",
" name=\"${1:input1}\" ",
" label=\"${2:Enter a date}\" ",
"></lightning-input>"
],
"description": "Input Date - Date input fields provide a date picker for entering a date.",
"prefix": "lwc-input-date"
},
"lwc-input-date-predefined": {
"body": [
"<lightning-input ",
" type=\"date\" ",
" name=\"${1:input2}\" ",
" label=\"${2:Date field with a predefined value}\" ",
" value=\"${3:2023-06-08}\"",
"></lightning-input>"
],
"description": "Input Date w/ Predefined Value",
"prefix": "lwc-input-date-predefined"
},
"lwc-input-date-time": {
"body": [
"<lightning-input ",
" type=\"datetime\" ",
" name=\"${1:input1}\" ",
" label=\"${2:Enter a date/time value}\" ",
"></lightning-input>"
],
"description": "Input Date Time - Date/Time input fields provide a date and time picker for entering a date and time.",
"prefix": "lwc-input-date-time"
},
"lwc-input-email": {
"body": [
"<lightning-input ",
" type=\"email\" ",
" label=\"${1:Email address}\"",
"></lightning-input>"