@botonic/plugin-flow-builder
Version:
Use Flow Builder to show your contents
24 lines (23 loc) • 785 B
TypeScript
/// <reference types="react" />
import { FlowBuilderApi } from '../api';
import { ContentFieldsBase } from './content-fields-base';
import { FlowButton } from './flow-button';
import { HtCarouselElement } from './hubtype-fields';
export declare class FlowElement extends ContentFieldsBase {
title: string;
subtitle: string;
button: FlowButton | undefined;
image: string;
hidden: boolean;
static fromHubtypeCMS(component: HtCarouselElement, locale: string, cmsApi: FlowBuilderApi): FlowElement;
static fromAIAgent(id: string, element: {
title: string;
subtitle: string;
image: string;
button: {
text: string;
url: string;
};
}): FlowElement;
toBotonic(parentId: string): JSX.Element;
}