Open soanvig opened 3 years ago
What about this?
<Mention
trigger="@"
data={fetchUsers}
renderSuggestion={renderSuggestion}
/>
const renderSuggestion = (
suggestion,
search,
highlightedDisplay,
index,
focused,
) => {
return (
<div className={styles.suggestion}>
<Avatar user={suggestion.user} />
<div className={styles.title}>{highlightedDisplay}</div>
</div>
)
}
Hello.
Is custom suggestion dropdown component considered?