Files
payloadcms/test/fields/collections/Radio/index.ts
2024-03-08 14:42:24 -05:00

34 lines
671 B
TypeScript

import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types.js'
import { radioFieldsSlug } from '../../slugs.js'
const RadioFields: CollectionConfig = {
slug: radioFieldsSlug,
fields: [
{
name: 'radio',
label: {
en: 'Radio en',
es: 'Radio es',
},
type: 'radio',
options: [
{
label: { en: 'Value One', es: 'Value Uno' },
value: 'one',
},
{
label: 'Value Two',
value: 'two',
},
{
label: 'Value Three',
value: 'three',
},
],
},
],
}
export default RadioFields