View as Markdown

API reference: @salmonui/inputs/form

FieldErrorcomponent

import { FieldError } from '@salmonui/inputs/form';
function FieldError({ children, className, style }: {
    readonly children?: ReactNode;
    readonly className?: string;
    readonly style?: CSSProperties;
}): ReactNode;

The error part for custom layouts: renders the enclosing field's error (or children) with the id its control points at.