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'