Initial
This commit is contained in:
37
src/blocks/Spacer.ts
Normal file
37
src/blocks/Spacer.ts
Normal 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;
|
||||
Reference in New Issue
Block a user