smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Chat

ReactionPicker

A labelled group of emoji reaction buttons.

Public export

typescript
import { ReactionPicker } from '@happyvertical/smrt-ui/chat';
Import path
@happyvertical/smrt-ui/chat
Props
5
Props described
5 of 5
Bindable state
0
Callback events
1
Verified release
0.62.10

Props

NameTypeRequiredDescription
emojisstring[]NoEmoji set to offer.
labelstringNoAccessible label for the group. Defaults to a translated "Add reaction".
emojiLabel(emoji: string) => stringNoAccessible name for each emoji button. Defaults to a built-in name for the common reactions, else a translated "React with {emoji}".
isOpenbooleanNoWhether the picker is shown.
onpick(emoji: string) => voidNoFired with the chosen emoji.

Bindable state

This component has no bindable public state.

Callback events

  • onpick(emoji: string) => void

Examples and explanation