Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcategories within custom emojis #447

Open
lyra-white opened this issue Dec 28, 2024 · 0 comments
Open

Subcategories within custom emojis #447

lyra-white opened this issue Dec 28, 2024 · 0 comments

Comments

@lyra-white
Copy link

I am trying to add custom emojis, but since there are too many types, I would like to sub-categorize them, like smileys, objects, etc.

Is there a way to do that?

<EmojiPicker
          key="animated-picker"
          onEmojiClick={(emojiData) => {
            onEmojiSelect(emojiData);
            onClose();
          }}
          customEmojis={[...CUSTOM_SMILEYS, ...CUSTOM_OBJECTS]}
          autoFocusSearch={false}
          width={350}
          height={450}
          lazyLoadEmojis={true}
          searchPlaceholder="Search custom emoji..."
          categories={[
            {
              category: 'custom',
              name: 'Custom Smileys'
            },
            {
              category: 'objects',
              name: 'Custom Objects'
            }
          ]}
          defaultCategories={[]}
          preload={false}
        />

I don't see a way of mapping CUSTOM_SMILEYS - which contains id, names and imgUrl - in the categories array. Is it possible?

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

No branches or pull requests

1 participant