ChatMessageReaction.key
property · packages/mixins-ui/src/chatMessage.ts:98
readonly key: stringKeeps the reaction's DOM when the ones before it change.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/chatMessage.ts:96
interface ChatMessageReaction<Message> {
readonly key: string
readonly mark: string
readonly label: string
readonly count?: number | undefined
readonly pressed?: boolean | undefined
readonly onClick?: Message | undefined
}An emoji or a glyph someone gave a message, with how many did.
ChatMessageReaction.keyproperty · packages/mixins-ui/src/chatMessage.ts:98
readonly key: stringKeeps the reaction's DOM when the ones before it change.
ChatMessageReaction.markproperty · packages/mixins-ui/src/chatMessage.ts:100
readonly mark: stringWhat is drawn: an emoji or a glyph.
ChatMessageReaction.labelproperty · packages/mixins-ui/src/chatMessage.ts:102
readonly label: stringIts name for a reader: Thumbs up.
ChatMessageReaction.countproperty · packages/mixins-ui/src/chatMessage.ts:103
readonly count?: number | undefinedChatMessageReaction.pressedproperty · packages/mixins-ui/src/chatMessage.ts:105
readonly pressed?: boolean | undefinedA toggle's state (you gave this one), as aria-pressed.
ChatMessageReaction.onClickproperty · packages/mixins-ui/src/chatMessage.ts:107
readonly onClick?: Message | undefinedMakes it a button that sends this; without it the reaction is shown, not pressed.