Pular para o conteúdo principal

VisualContentProps

Props accepted by the VisualContent component.

Index

Properties

optionalcomponents

components?: Partial<BlockComponents>

An optional object of React components. You can pass any number of replacement components that will render blocks of a given type.

optionalcontent

content?: VisualData

The content to render. It should be the object returned by Starlight on a Visual Editor field. Required.

optionalexcerpt

excerpt?: boolean

If true, only a small portion of the content will be rendered, and block types other than text paragraphs will be ignored. Defaults to false.

optionalexcerptLength

excerptLength?: number

Defines the maximum number of words to render when excerpt is true. Defaults to 40.