Skip to main content
Version: 1.0.0

Interface: PreviewComponentProps<T, CustomProps>

Type parameters

NameType
Textends CMSType = CMSType
CustomPropsany

Properties

customProps

Optional customProps: CustomProps

Additional properties set by the developer

Defined in

preview/PreviewComponentProps.tsx:53


height

Optional height: number

Max height assigned to the preview, depending on the context. It may be undefined if unlimited.

Defined in

preview/PreviewComponentProps.tsx:42


name

Optional name: string

Name of the property

Defined in

preview/PreviewComponentProps.tsx:16


onClick

Optional onClick: MouseEventHandler<any>

Click handler

Defined in

preview/PreviewComponentProps.tsx:31


property

property: Property<T>

Property this display is related to

Defined in

preview/PreviewComponentProps.tsx:26


size

size: PreviewSize

Desired size of the preview, depending on the context.

Defined in

preview/PreviewComponentProps.tsx:36


value

value: T

Current value of the property

Defined in

preview/PreviewComponentProps.tsx:21


width

Optional width: number

Max height width to the preview, depending on the context. It may be undefined if unlimited.

Defined in

preview/PreviewComponentProps.tsx:48