This commit is contained in:
2022-07-20 19:24:59 +01:00
commit b709b69364
19 changed files with 31916 additions and 0 deletions

37
src/blocks/Spacer.ts Normal file
View File

@@ -0,0 +1,37 @@
import { Block } from 'payload/types';
const SpacerBlock: Block = {
slug: 'spacer',
labels: {
singular: 'Spacer',
plural: 'Spacers'
},
fields: [
{
name: 'size',
label: 'Size',
type: 'radio',
required: true,
defaultValue: 'medium',
options: [
{
label: 'Small',
value: 'small'
},
{
label: 'Medium',
value: 'medium'
},
{
label: 'Large',
value: 'large'
}
],
admin: {
layout: 'horizontal'
}
}
]
};
export default SpacerBlock;