Betashould be a valid video field type definition.
Optional Betacomponents?: ObjectComponentsOptionaldeprecated?: DeprecatedPropertyOptionaldescription?: string | ElementOptionalfields?: FieldDefinition<Optionalfieldset?: stringOptionalfieldsets?: FieldsetDefinition[]Optionalgroup?: string | string[]Optionalhidden?: ConditionalPropertyOptionalicon?: ComponentType | ReactNodeOptionalinitialValue?: InitialValueProperty<any, VideoValue>Optionaloptions?: VideoOptionsOptionalpreview?: PreviewConfigOptionalreadOnly?: ConditionalPropertyOptional BetarenderMembers?: ObjectRenderMembersCallbackCallback that allows developers to customize the members of the object input. It can be used to add decoration members to the object input, instead of using empty fields. For example:
import { Decoration } from './Decoration'
renderMembers: (members) => {
return [
...members,
{
key: 'decoration',
kind: 'decoration',
component: Decoration,
},
]
Optionaltitle?: stringOptionalvalidation?: ValidationBuilder<VideoRule, VideoValue>
Define a video field within a document, object, image or file definition
fieldsarray.This function will narrow the schema type down to video fields and options based on the provided type-string.
Using
defineVideoFieldis optional, but should provide improved autocompletion in your IDE, when building your schema. Video field-properties likevalidationandinitialValuewill also be more specific.Note: This video field type is designed to work specifically with the Media Library asset source. Make sure you have the Media Library is enabled in your studio via sanity.config.ts.
See defineType for similar examples.