Files
bandmaster-public/src/blocks/Spacer.ts
2022-07-20 19:30:14 +01:00

38 lines
521 B
TypeScript

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;