Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Failing after 1m13s
Build & Deploy / 🏗️ Build (push) Failing after 5m53s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Smoke Test (push) Has been skipped
Build & Deploy / ⚡ Lighthouse (push) Has been skipped
Build & Deploy / ♿ WCAG (push) Has been skipped
Build & Deploy / 🛡️ Quality Gates (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 4s
48 lines
832 B
TypeScript
48 lines
832 B
TypeScript
import { Block } from 'payload';
|
|
|
|
export const ComparisonGrid: Block = {
|
|
slug: 'comparisonGrid',
|
|
fields: [
|
|
{
|
|
name: 'title',
|
|
label: 'Main Heading',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'leftLabel',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'rightLabel',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'items',
|
|
type: 'array',
|
|
required: true,
|
|
minRows: 1,
|
|
fields: [
|
|
{
|
|
name: 'label',
|
|
label: 'Row Label',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'leftValue',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'rightValue',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|