office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
16 lines (15 loc) • 550 B
TypeScript
import * as React from 'react';
export interface IPickerItemProps<T> extends React.AllHTMLAttributes<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;
    removeButtonAriaLabel?: string;
}