Skip to main content

Block

Block

The Block component is used for wrapping fields in BlockRepeater, BlockEditor or DiscriminatedBlocks components.

Loading...

Props

PropDescription

discriminateBy

OptionallyVariableFieldValue

Field to discriminate by.

Required

label

ReactNode

The label for the field.

description

ReactNode

The description for the field.

alternate

ReactNode

children

Renders content of the component.

Block in BlockEditor

Loading...