BlockElementModel
BlockElementModel =
object
Defined in: packages/schema/src/model.ts:1219
One element of a layout block tree, as @protobase/layout’s JSX makes it: a block’s or a registered component’s
type, its props and children, all plain data.
Properties
Section titled “Properties”children
Section titled “children”children: (
BlockElementModel|string)[]
Defined in: packages/schema/src/model.ts:1225
The elements and text inside it.
custom?
Section titled “custom?”
optionalcustom?:true
Defined in: packages/schema/src/model.ts:1227
A component the project registers, rather than a built-in block.
fallback?
Section titled “fallback?”
optionalfallback?: (BlockElementModel|string)[]
Defined in: packages/schema/src/model.ts:1229
What a client draws in place of a component it does not have.
props:
Record<string,JsonValue>
Defined in: packages/schema/src/model.ts:1223
Its props, plain data.
reads?
Section titled “reads?”
optionalreads?:unknown
Defined in: packages/schema/src/model.ts:1231
Which of a component’s props name what it reads.
type:
string
Defined in: packages/schema/src/model.ts:1221
A built-in block’s name, such as Thread, or a registered component’s.