UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

23 lines 966 B
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