@@ -359,23 +359,23 @@ The `useForm` hook returns an object with the following properties:
359
359
rows={[
360
360
[
361
361
{
362
- value: "**\` path\` **",
362
+ value: "**\\\ ` path\\ \` **",
363
363
},
364
364
{
365
365
value: "The path to the array or block field",
366
366
},
367
367
],
368
368
[
369
369
{
370
- value: "**\` rowIndex\` **",
370
+ value: "**\\\ ` rowIndex\\ \` **",
371
371
},
372
372
{
373
373
value: "The index of the row to add. If omitted, the row will be added to the end of the array.",
374
374
},
375
375
],
376
376
[
377
377
{
378
- value: "**\` data<\` **",
378
+ value: "**\\\ ` data<\\ \` **",
379
379
},
380
380
{
381
381
value: "The data to add to the row",
@@ -385,8 +385,8 @@ The `useForm` hook returns an object with the following properties:
385
385
/>
386
386
387
387
388
- \`\` \` tsx
389
- {\` import { useForm } from "payload/components/forms";
388
+ \\\`\\\`\\ \` tsx
389
+ {\\\ ` import { useForm } from "payload/components/forms";
390
390
391
391
export const CustomArrayManager = () => {
392
392
const { addFieldRow } = useForm()
@@ -409,13 +409,13 @@ export const CustomArrayManager = () => {
409
409
Add Row
410
410
</button>
411
411
)
412
- }\` }
413
- \`\` \`
412
+ }\\\ ` }
413
+ \\\`\\\`\\ \`
414
414
415
415
An example config to go along with the Custom Component
416
416
417
- \`\` \` tsx
418
- {\` const ExampleCollection = {
417
+ \\\`\\\`\\ \` tsx
418
+ {\\\ ` const ExampleCollection = {
419
419
slug: "example-collection",
420
420
fields: [
421
421
{
@@ -438,8 +438,8 @@ An example config to go along with the Custom Component
438
438
},
439
439
},
440
440
],
441
- }\` }
442
- \`\` \`
441
+ }\\\ ` }
442
+ \\\`\\\`\\ \`
443
443
`
444
444
}
445
445
],
@@ -463,15 +463,15 @@ An example config to go along with the Custom Component
463
463
rows={[
464
464
[
465
465
{
466
- value: "**\` path\` **",
466
+ value: "**\\\ ` path\\ \` **",
467
467
},
468
468
{
469
469
value: "The path to the array or block field",
470
470
},
471
471
],
472
472
[
473
473
{
474
- value: "**\` rowIndex\` **",
474
+ value: "**\\\ ` rowIndex\\ \` **",
475
475
},
476
476
{
477
477
value: "The index of the row to remove",
@@ -482,8 +482,8 @@ An example config to go along with the Custom Component
482
482
483
483
484
484
485
- \`\` \` tsx
486
- {\` import { useForm } from "payload/components/forms";
485
+ \\\`\\\`\\ \` tsx
486
+ {\\\ ` import { useForm } from "payload/components/forms";
487
487
488
488
export const CustomArrayManager = () => {
489
489
const { removeFieldRow } = useForm()
@@ -501,13 +501,13 @@ export const CustomArrayManager = () => {
501
501
Remove Row
502
502
</button>
503
503
)
504
- }\` }
505
- \`\` \`
504
+ }\\\ ` }
505
+ \\\`\\\`\\ \`
506
506
507
507
An example config to go along with the Custom Component
508
508
509
- \`\` \` tsx
510
- {\` const ExampleCollection = {
509
+ \\\`\\\`\\ \` tsx
510
+ {\\\ ` const ExampleCollection = {
511
511
slug: "example-collection",
512
512
fields: [
513
513
{
@@ -530,8 +530,8 @@ An example config to go along with the Custom Component
530
530
},
531
531
},
532
532
],
533
- }\` }
534
- \`\` \`
533
+ }\\\ ` }
534
+ \\\`\\\`\\ \`
535
535
`
536
536
}
537
537
],
@@ -555,23 +555,23 @@ An example config to go along with the Custom Component
555
555
rows={[
556
556
[
557
557
{
558
- value: "**\` path\` **",
558
+ value: "**\\\ ` path\\ \` **",
559
559
},
560
560
{
561
561
value: "The path to the array or block field",
562
562
},
563
563
],
564
564
[
565
565
{
566
- value: "**\` rowIndex\` **",
566
+ value: "**\\\ ` rowIndex\\ \` **",
567
567
},
568
568
{
569
569
value: "The index of the row to replace",
570
570
},
571
571
],
572
572
[
573
573
{
574
- value: "**\` data\` **",
574
+ value: "**\\\ ` data\\ \` **",
575
575
},
576
576
{
577
577
value: "The data to replace within the row",
@@ -583,8 +583,8 @@ An example config to go along with the Custom Component
583
583
584
584
585
585
586
- \`\` \` tsx
587
- {\` import { useForm } from "payload/components/forms";
586
+ \\\`\\\`\\ \` tsx
587
+ {\\\ ` import { useForm } from "payload/components/forms";
588
588
589
589
export const CustomArrayManager = () => {
590
590
const { replaceFieldRow } = useForm()
@@ -607,13 +607,13 @@ export const CustomArrayManager = () => {
607
607
Replace Row
608
608
</button>
609
609
)
610
- }\` }
611
- \`\` \`
610
+ }\\\ ` }
611
+ \\\`\\\`\\ \`
612
612
613
613
An example config to go along with the Custom Component
614
614
615
- \`\` \` tsx
616
- {\` const ExampleCollection = {
615
+ \\\`\\\`\\ \` tsx
616
+ {\\\ ` const ExampleCollection = {
617
617
slug: "example-collection",
618
618
fields: [
619
619
{
@@ -636,8 +636,8 @@ An example config to go along with the Custom Component
636
636
},
637
637
},
638
638
],
639
- }\` }
640
- \`\` \`
639
+ }\\\ ` }
640
+ \\\`\\\`\\ \`
641
641
`
642
642
}
643
643
],
0 commit comments