Home > @uniformdev/mesh-sdk-react > SelectionField

SelectionField() function

Warning: This API is now obsolete.

please use ObjectSearchContainer - https://mesh-design-system.netlify.app/?path=/story/object-search--query-filter-with-inputs

Signature:

SelectionField: ({ id, label, loading, selectedValues, values, onAdd, onRemove, }: {
    id: string;
    label: string;
    loading: boolean;
    selectedValues: string[] | undefined;
    values: SelectionFieldValue[];
    onAdd: (id: string) => void;
    onRemove: (id: string) => void;
}) => _emotion_react_jsx_runtime.JSX.Element

Parameters

ParameterTypeDescription
{ id, label, loading, selectedValues, values, onAdd, onRemove, }{ id: string; label: string; loading: boolean; selectedValues: string[] | undefined; values: SelectionFieldValue[]; onAdd: (id: string) => void; onRemove: (id: string) => void; }

Returns:

_emotion_react_jsx_runtime.JSX.Element