Genesis
@stable

RelationField

packages/ui/src/components/data/RelationField.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { RelationField } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

RelationField

PropTypeDefaultDescription
field*ResourceFormFieldDef—
onChange*((value: string) => void) | ((value: string | number | null) => void)—The picked row's key as the row holds it; `null` when None is chosen.
value*unknown—The linked row's key (text or a number), or empty.
aria-describedbystring—
aria-invalidboolean—
aria-requiredboolean—
disabledboolean—
idstring—Id for the trigger, so a `<label htmlFor>` names it.
keysenum—
valuesReadonly<Record<string, unknown>>—The form's values, for a picker whose filters follow another field.