UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

21 lines (20 loc) 667 B
/// <reference types="react" /> import Field from '../field'; import Form from './form'; export type LabelAlign = 'top' | 'inset' | 'left'; export type TextAlign = 'left' | 'right'; export type ItemSize = 'large' | 'medium' | 'small'; export interface FormContextProps { labelAlign: LabelAlign; labelWidth: string | number; labelTextAlign?: TextAlign; contentAlign: 'left' | 'right'; size: ItemSize; isPreview: boolean; useLabelForErrorMessage: boolean; form?: Form; field?: Field; } export declare const defaultContext: FormContextProps; declare const _default: import("react").Context<FormContextProps>; export default _default;