synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
23 lines • 966 B
TypeScript
import { TYPE_FILTER, UserGroupHeader } from '@sage-bionetworks/synapse-types';
export type UserSearchBoxProps = {
inputId?: string;
defaultValue?: string;
onChange?: (principalId: string | null, header: UserGroupHeader | null) => void;
typeFilter?: TYPE_FILTER;
filterPredicate?: (item: UserGroupHeader) => boolean;
placeholder?: string;
autoFocus?: boolean;
/**
* The principal ID of the currently selected user or team.
* - `undefined`: uncontrolled — the component manages its own selection state
* - `null`: controlled with no selection (clears the field)
* - string: controlled with the given principal ID selected
*/
value?: string | null;
};
/**
* Autocomplete component used to search for and select a user or team.
*/
declare function UserSearchBox(props: UserSearchBoxProps): import("react/jsx-runtime").JSX.Element;
export default UserSearchBox;
//# sourceMappingURL=UserSearchBox.d.ts.map