import type { JSX, ValidComponent } from "@solidjs/web"; import { type FieldRootState } from "../../internals/field-context.js"; import type { BaseUIComponentProps } from "../../internals/types.js"; export interface FieldErrorState extends FieldRootState { } export interface FieldErrorProps extends BaseUIComponentProps<"div", FieldErrorState> { /** Tag/component to render. Defaults to `"div"`. */ as?: ValidComponent; /** * Determines whether to show the error message according to the field's * [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState). * * - `true` forces the error to render regardless of validity (lets external * libraries drive visibility). * - A string picks a specific `ValidityState` key — the error renders only * when that key is `true` in the field's validity snapshot. * - Omitted: render when the field has a `
`-level error for its * `name`, OR when the field's own validity has collapsed to `false`. */ match?: boolean | keyof ValidityState | undefined; } /** * An error message displayed when the field control fails validation. * Renders a `
` element (inline — the caller can override * via `render`). * * Conditionally rendered via ``: no DOM node is produced when the * field is valid (and no override match hits). The error id is registered * with the surrounding ``'s message registry ONLY while the * element is actually rendered — unmounting cleans up `onCleanup` + the * `` block's tear-down. */ export declare function FieldError(props: FieldErrorProps): JSX.Element; //# sourceMappingURL=field-error.d.ts.map