ReferenceError

Disabled input used to surface an error from a reference lookup. Shows the label, a disabled input, and the error message below it in the destructive colour.

Deprecated. Prefer the regular error handling of <ReferenceInput> instead. This component is kept for backward compatibility.

Usage

import { ReferenceError } from "@/components/admin/reference-error";
 
const BrokenLookup = () => (
  <ReferenceError
    label="Author"
    error={new Error("Failed to load reference 'authors'")}
  />
);

Props

PropRequiredTypeDefaultDescription
errorRequiredError-Error to display below the input.
labelOptionalReactNode-Optional label rendered above the input.