button
element, with a click behavior that toggles the display of the iframe element. ASAPP recommends that you use the default badge element so you can take advantage of our latest features as they become available.
However, if you wish to customize the badge, you can do so by either manipulating the CSS associated with the badge, or by hiding/removing the element from your DOM and toggling the display of the iframe using your own custom element. See the Badge Styling section below for more details on customizing the appearance of the ASAPP Chat SDK Badge.
#asapp-chat-sdk-badge
or classname .asappChatSDKBadge
selectors. ASAPP recommends that you use BadgeColor.
The following snippet is an example of how you might use these selectors to customize the element to meet your brand needs:
ASAPP('show')
and/or ASAPP('hide')
when your custom badge is clicked to open/close the iframe.<iframe>
element whose contents are delivered by the ASAPP platform.
ASAPP recommends using the default iframe sizing, positioning, and functionality so you can take advantage of our latest features as they become available.
However, if you wish to customize this element you can do so by applying functionality and styling to the frame itself. See the iframe Styling section below for details on available customizations.
The following code snippet is an example of the ASAPP Chat SDK iframe markup.
#asapp-chat-sdk-iframe
or classname .asappChatSDKIFrame
selectors.
The following snippet is an example of how you may want to use these selectors to customize the element to your brand.
Access-Control-Allow-Origin
that allows sdk.asapp.com
or *
.Chat.Styling
section of the configuration and identifies the defined styles for various elements.Chat
section that supports styling, icons, and features:
Chat.Styling
object allows you to customize the appearance of various chat elements:
Container
: Scrollable container holding all quick reply buttonsButton
: Individual quick reply action buttonsQuickReplies Example
AttachmentButton.Icon
: Icon within the attachment buttonSendButton.Icon.Disabled
: Send button icon in disabled stateSendButton.Icon.Enabled
: Send button icon in enabled stateChatInput Example
ProgressBar.Container
: Background container for progress barProgressBar.Line
: Active progress indicator lineContent
: Main content area stylingSecondaryText
: Secondary description textPrimaryText
: Primary time display textTextContainer
: Wrapper for text elementsButton
: Action buttons in EWT sheetEwtSheet Example
Buttons.Container
: Wrapper for all action buttonsButtons.Primary
: Primary action button stylingButtons.Secondary
: Secondary action button stylingActionSheet Example
Container
: Container for new question UIContent.Text
: Text elements in promptContent.Icon
: Icon in new question UINewQuestion Example
Container
: Banner containerText
: Main banner textWarning
: Warning variant stylingError
: Error variant stylingSuccess
: Success variant stylingIcon
: Icon variant stylingChatBanner Example
ScrollView
: Chat view for chat messagesChatMessagesView Example
Chat.Icons
section allows you to specify custom SVG path data for key icons used within the chat interface.
d
path data to create customizable icons. You only need to provide the d
attribute value from your SVG:
Chat.Features
section controls the availability of specific chat features: