office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
15 lines (14 loc) • 496 B
TypeScript
import * as React from 'react';
export interface IPickerItemProps<T> extends React.HTMLAttributes<HTMLElement> {
componentRef?: () => void;
item: T;
index: number;
selected?: boolean;
onRemoveItem?: () => void;
/**
* Internal Use only, gives a callback to the renderer to call when an item has changed.
* This allows the base picker to keep track of changes in the items.
*/
onItemChange?: (item: T, index: number) => void;
key?: string | number;
}