UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

11 lines (10 loc) 497 B
import type { ReactElement, ReactNode } from "react"; import type { ChildProps } from "../util/props.js"; export interface FieldProps extends ChildProps { title?: ReactNode | undefined; description?: ReactNode | undefined; message?: ReactNode | undefined; required?: boolean | undefined; } /** A `<Field>` wraps around a form control/input, to shows a small `<label>` above it. */ export declare function Field({ title, description, message, children }: FieldProps): ReactElement;