rehance-forms
Version:
Form utilities for React
18 lines (17 loc) • 565 B
TypeScript
import * as React from "react";
import { ScopeContext } from "./ScopeContext";
export declare type PreviewOutputProps = React.HtmlHTMLAttributes<HTMLSpanElement> & {
name: string;
format?(value: any): React.ReactNode;
};
export declare class PreviewOutput extends React.PureComponent<PreviewOutputProps> {
static defaultProps: Partial<PreviewOutputProps>;
/**
* Render the content for the preview output.
*/
renderContent: (scope: ScopeContext) => JSX.Element;
/**
* Render the component.
*/
render(): JSX.Element;
}