mui-tw-components
Version:
````markdown # **mui-tw-components - Reusable UI Components**
22 lines (21 loc) • 562 B
TypeScript
import React, { SyntheticEvent } from 'react';
interface Person {
id: number;
name: string;
email: string;
avatar?: string;
}
interface PeoplePickerProps {
options: Person[];
value: Person | null;
onChange: (event: SyntheticEvent<Element, Event>, value: Person | null) => void;
label?: string;
placeholder?: string;
required?: boolean;
isLabelRequired?: boolean;
wrapperStyle?: string;
id: string;
disabled?: boolean;
}
declare const PeoplePicker: React.FC<PeoplePickerProps>;
export default PeoplePicker;