Skip to content

Conversation

@snewcomer
Copy link

@snewcomer snewcomer commented Nov 6, 2024

Description

mention component implementation

Fixes #114

Type of change

Please tick the relevant option.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

@vercel
Copy link

vercel bot commented Nov 6, 2024

@snewcomer is attempting to deploy a commit to the dargo's projects Team on Vercel.

A member of the Team first needs to authorize it.

</span>

{showMenu && (
<div role="listbox" aria-activedescendant={`mention-item-${highlightedIndex}`} className="mention-menu">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this use <Portal? Currently no positional information in this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we might need a new UI component for ListItem or the like.


interface MentionRenderProps extends PluginElementRenderProps {
initialMentions: string[];
fetchMentions: (query: string) => Promise<string[]>;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we give the possibility to override this ? I might want to group mentions

@Darginec05
Copy link
Collaborator

Will be implemented here: #506

@Darginec05 Darginec05 closed this May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

want to add custom plugin i.e after type @ with some text want to display list of items

4 participants