UNPKG

@uva-glass/component-library

Version:

React components UvA

10 lines (9 loc) 627 B
import { HTMLAttributes, PropsWithChildren } from 'react'; export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> { /** true if a margin at the top and bottom should be added; otherwise, false. The default is false. */ outerSpace?: boolean; /** true if the label and input field should be rendered on the same row; otherwise, false. The default is false. */ inline?: boolean; } /** Represents an element to wrap a label and input field. */ export declare const FormField: ({ children, outerSpace, inline, ...rest }: PropsWithChildren<FormFieldProps>) => import("react/jsx-runtime").JSX.Element;