ChatBubble
Importβ
import { ChatBubble } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
errorβ
outboundβ
| Type | bool |
|---|
Descriptionβ
If true, the chat bubble represents an outbound message, otherwise it represents an inbound message.
messageQuotedLabelTextβ
| Type | string |
|---|---|
| Default | ChatBubble.translations.en.messageQuoted |
Descriptionβ
Custom text for the label that identifies the quoted message. This text is not displayed on the screen.
Preset values for English, Brazilian Portuguese and Spanish are available
in ChatBubble.translations.en.messageQuoted,
ChatBubble.translations.ptBR.messageQuoted, and
ChatBubble.translations.es.messageQuoted.
messageNotSentLabelTextβ
| Type | string |
|---|---|
| Default | ChatBubble.translations.en.messageNotSent |
Descriptionβ
Custom text for the label that identifies the message not sent. This text is not displayed on the screen.
Preset values for English, Brazilian Portuguese and Spanish are available
in ChatBubble.translations.en.messageNotSent,
ChatBubble.translations.ptBR.messageNotSent, and
ChatBubble.translations.es.messageNotSent.
messageSentLabelTextβ
| Type | string |
|---|---|
| Default | ChatBubble.translations.en.messageSent |
Descriptionβ
Custom text for the label that identifies the sent message. This text is not displayed on the screen.
Preset values for English, Brazilian Portuguese and Spanish are available
in ChatBubble.translations.en.messageSent,
ChatBubble.translations.ptBR.messageSent, and
ChatBubble.translations.es.messageSent.
messageReceivedLabelTextβ
| Type | string |
|---|---|
| Default | ChatBubble.translations.en.messageReceived |
Descriptionβ
Custom text for the label that identifies the received message. This text is not displayed on the screen.
Preset values for English, Brazilian Portuguese and Spanish are available
in ChatBubble.translations.en.messageReceived,
ChatBubble.translations.ptBR.messageReceived, and
ChatBubble.translations.es.messageReceived.
actionsLabelTextβ
| Type | string |
|---|---|
| Default | ChatBubble.translations.en.actions |
Descriptionβ
Custom text for the label that identifies the actions icon button.
Preset values for English, Brazilian Portuguese and Spanish are available
in ChatBubble.translations.en.actions,
ChatBubble.translations.ptBR.actions, and
ChatBubble.translations.es.actions.
<ChatBubbleActionsDropdown />β
Importβ
import { ChatBubbleActionsDropdown } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
defaultOpenβ
| Type | bool |
|---|
Descriptionβ
Responsible for controlling if Dropdown will be rendered opened or closed in the uncontrolled version.
openβ
positionβ
unfocusedβ
keepMountedβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
Sets if the Dropdown will be always mounted after the first mount. It can be useful for SEO.
onClickOutsideβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback triggered when the Dropdown is open and outside of dropdown is clicked.
onEscapeβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback triggered when the Dropdown is opened and ESC key is pressed.
onKeyDownβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback triggered when the Dropdown is focused and any key is pressed.
onToggleβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
| Param | open boolean - Dropdown open state. |
| Param | infos object - Additional information about component status. |
Descriptionβ
Callback triggered when the Dropdown requests to be closed or opened.
<ChatBubbleFeedback />β
Importβ
import { ChatBubbleFeedback } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
<ChatBubbleHeader />β
Importβ
import { ChatBubbleHeader } from '@resultadosdigitais/tangram-components'