import EditIcon from '@mui/icons-material/Edit';
import MultiAutocompleteField from '.';
import MultiPopoverAutocomplete from './Popover';
export default { title: 'InputField/Autocomplete/Multi' };
const options = [
{ id: 0, name: 'First Entity' },
{ id: 1, name: 'Second Entity' },
{ id: 2, name: 'Third Entity' }
];
export const openWithThreeOptions = (): JSX.Element => {
return (
);
};
export const closeWithEndAdornment = (): JSX.Element => {
return (
}
label="Autocomplete"
options={options}
placeholder="Type here..."
value={[options[1]]}
/>
);
};
export const popover = (): JSX.Element => {
return (
);
};
export const popoverWithoutInput = (): JSX.Element => {
return (
);
};
export const customRenderedTags = (): JSX.Element => {
const customRender = (tags: React.ReactNode): React.ReactNode => (
{tags}
Custom wrapper
);
return (
);
};