ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
1.06k stars 173 forks source link

How exclude certain groups? #176

Closed bhairava3 closed 3 years ago

bhairava3 commented 3 years ago

Hi! This is the best emoji component, better optimized, no lags, etc.! Thank you for this wonderful job! Can I turn off the display of some emoji categories?

ealush commented 3 years ago

Hey @bhairava3, thank you for this response. I appreciate it 🙏🏻

Hrm. This wasn't a feature, but it is now. If you use 3.4.0 you will have the groupVisibility prop that works similarly to the groupNames prop. You pass it a group name and a boolean indicating whether it is visible or not. Let me know if that works for you.

https://github.com/ealush/emoji-picker-react#disabling-categories

bhairava3 commented 3 years ago

Thank you so much!

yelnyafacee commented 1 year ago

Hey @bhairava3, thank you for this response. I appreciate it 🙏🏻

Hrm. This wasn't a feature, but it is now. If you use 3.4.0 you will have the groupVisibility prop that works similarly to the groupNames prop. You pass it a group name and a boolean indicating whether it is visible or not. Let me know if that works for you.

https://github.com/ealush/emoji-picker-react#disabling-categories

is this feature gone? I cannot find the groupVisibility or groupNames props anymore ' for my case I need to hide the entire Categories section but seems the:

categories={[
    'suggested',
    'smileys_people',
    'animals_nature',
    'food_drink',
    'travel_places',
    'activities',
    'objects',
    'symbols',
    'flags' 
]}

cannot accept undefined, null or empty array as value

ealush commented 1 year ago

No, the feature is not gone, it is just moved into the group config prop. You can omit certain groups from it.

On Mon, 7 Aug 2023 at 9:00 yelnyaface @.***> wrote:

Hey @bhairava3 https://github.com/bhairava3, thank you for this response. I appreciate it 🙏🏻

Hrm. This wasn't a feature, but it is now. If you use 3.4.0 you will have the groupVisibility prop that works similarly to the groupNames prop. You pass it a group name and a boolean indicating whether it is visible or not. Let me know if that works for you.

https://github.com/ealush/emoji-picker-react#disabling-categories

is this feature gone? I cannot find the groupVisibility or groupNames props anymore

— Reply to this email directly, view it on GitHub https://github.com/ealush/emoji-picker-react/issues/176#issuecomment-1667234251, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACV32P2O2ZYL47SZNMWAHU3XUB75TANCNFSM4WDU2ACA . You are receiving this because you modified the open/close state.Message ID: @.***>