Skip to main content

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