UNPKG

@contentstack/live-preview-utils

Version:

Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.

18 lines (15 loc) 611 B
import { ISchemaFieldMap } from '../utils/types/index.types.js'; import { CslpData } from '../../cslp/types/cslp.types.js'; import { Signal } from '@preact/signals'; import '../../cms/types/contentTypeSchema.types.js'; interface AddInstanceButtonProps { value: any; onClick: (event: MouseEvent) => void; label?: string | undefined; fieldSchema: ISchemaFieldMap | undefined; fieldMetadata: CslpData; index: number; loading: Signal<boolean>; } declare function AddInstanceButtonComponent(props: AddInstanceButtonProps): JSX.Element; export { AddInstanceButtonComponent as default };