This Enterprise Edition component allows to edit array values, one-to-many or many-to-many relationships by moving items from one list to another. It’s a good alternative to <SelectInput> for a small number of choices.


import { ReferenceInput } from 'react-admin';
import { DualListInput } from '@react-admin/ra-relationships';

<ReferenceInput label="Author" source="author_id" reference="authors">
    <DualListInput optionText="last_name" />

Check the ra-relationships documentation for more details.