UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

26 lines (25 loc) 788 B
/// <reference types="react" /> import { DataSet, FormElement } from '@tomino/dynamic-form'; declare type PointingProps = boolean | 'above' | 'left' | 'right' | 'below'; declare type ErrorProps = { owner: DataSet; control?: FormElement; source: string; pointing?: PointingProps; newLine?: boolean; inline?: boolean; }; export declare function renderError(error: string, pointing: PointingProps): JSX.Element; export declare const ErrorView: { ({ owner, source, newLine, inline, pointing }: ErrorProps): JSX.Element; displayName: string; }; declare type ErrorLabelProps = { error: string; pointing?: PointingProps; }; export declare const ErrorLabel: { ({ error, pointing }: ErrorLabelProps): JSX.Element; displayName: string; }; export {};