OptionalclassName?: stringOptional.
Optionalextra?: ReactElement<unknown, string | JSXElementConstructor<any>>used to display other react components in a list item.
OptionalonClick?: (() => void) | (() => Promise<void>)the function which is called when the list element is clicked.
Optionaltext?: stringif is supplied then the list element will contain just a text.
Custom list element component.