← All native models

Native model

workspace_block_media_preview_config

Declare a named workspace_block_media_preview_config value and reference it as workspace_block_media_preview_config.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

Settings for the enclosing block. Use attributes for simple values, <property> children for lists and objects, or one complete JSON body.

object
aspectRatioOptional

Aspect ratio of the preview area.

string
childrenOptional
array
Minimum items
0
Maximum items
9223372036854776000
List items
Choose exactly one shape
All of these apply
componentRequired
string
Value
"block-MediaPreview-config"
jsonOptional
object
objectFitOptional

How the image fills the preview area.

string

Only the fields listed here are accepted.