VariantMemberInput
Defined in: packages/core/src/fields/variant/types.ts:54
One discriminated variant’s own definition, passed inline under
variant({ discriminator, variants: { [key]: ... } }).
Properties
Section titled “Properties”fields
Section titled “fields”fields:
Record<string,AdminField>
Defined in: packages/core/src/fields/variant/types.ts:62
Fields that make up this variant’s data shape. May not declare a key
equal to the field’s own discriminator — variant() throws
VexConfigError if it does.
label?
Section titled “label?”
optionallabel?:string
Defined in: packages/core/src/fields/variant/types.ts:56
Display label shown in the variant/type picker. Falls back to the variant’s own key.