UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

26 lines (25 loc) 916 B
import { Field, Type } from 'alinea/core'; import { FormAtoms } from '../atoms/FormAtoms.js'; export type InputFormProps = { border?: boolean; } & ({ type: Type; form?: undefined; } | { form: FormAtoms<any>; type?: undefined; }); export declare function InputForm(props: InputFormProps): import("react/jsx-runtime").JSX.Element; export interface FieldsProps { fields: Record<string, Field>; border?: boolean; } export declare function Fields({ fields, border }: FieldsProps): import("react/jsx-runtime").JSX.Element | null; export interface MissingViewProps { field: Field<any, any>; } export declare function MissingView({ field }: MissingViewProps): import("react/jsx-runtime").JSX.Element; export interface InputFieldProps<V, M> { field: Field<V, M>; } export declare function InputField<V, M>({ field }: InputFieldProps<V, M>): import("react/jsx-runtime").JSX.Element | null;