RelationField
packages/ui/src/components/data/RelationField.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { RelationField } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.RelationField
| Prop | Type | Default | Description |
|---|---|---|---|
| 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-describedby | string | — | |
| aria-invalid | boolean | — | |
| aria-required | boolean | — | |
| disabled | boolean | — | |
| id | string | — | Id for the trigger, so a `<label htmlFor>` names it. |
| keys | enum | — | |
| values | Readonly<Record<string, unknown>> | — | The form's values, for a picker whose filters follow another field. |