Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/page-builder/components/CraftResolver

Cockpit client (features), next. Source: ui/client/features/page-builder/components/CraftResolver.tsx.

Variables#

CraftResolver#

const CraftResolver: object

Defined in: ui/client/features/page-builder/components/CraftResolver.tsx:8

Craft's resolver: the block names a saved layout stores (resolvedName) and the export reads, mapped to components.

Type Declaration#

Button

Button: UserComponent<ButtonProps>

A button; its label names the handler the export gives it (Add category -> onAddCategory).

Container

Container: UserComponent<ContainerProps>

A flex box other blocks are dropped into (a Craft canvas).

Heading

Heading: UserComponent<HeadingProps>

A heading, level 1 to 3.

Image

Image: UserComponent<ImageProps>

An image by URL, with its alt text.

Text

Text: UserComponent<TextProps>

A paragraph of text.