local-emoji-picker
v0.0.14-beta.8
Published
emoji picker for local emojis
Downloads
327
Maintainers
Readme
local-emoji-picker
emoji picker for local emojis
live example
props
- categorySelector: boolean
- default: false
- search: boolean
- default: false
- frequentlyUsed: boolean
- default: false
- categories: categories
- default: preset, example { category: 'people', symbol: '😄' }
- onClick: function(data)
- data: { value: string, keywords: Array }
- idPrefix: string
- default: ''
examples
const onClick = (data) => {
console.log(data) /*
{
value: '',
keywords: ['', ...],
}
*/
}
<LocalEmojiPicker
categorySelector
search
frequentlyUsed
onClick={onClick}
/>
// only search
<LocalEmojiPicker
search
onClick={onClick}
/>
// only category selector
<LocalEmojiPicker
categorySelector
onClick={onClick}
/>
// custom category selector
<LocalEmojiPicker
categorySelector
categories={[
{
category: 'symbols',
symbol: '💕'
},
{
category: 'flags',
symbol: '🇸🇪'
}
]}
onClick={onClick}
/>,
// only frequently used
<LocalEmojiPicker
frequentlyUsed
onClick={onClick}
/>,
// none
<LocalEmojiPicker
onClick={onClick}
/>,