X Enterprises
nuxt-x-marketing

ModalChat

Floating chat-prompt overlay with avatar, online indicator, message, and action button — opens after a configurable delay.

ModalChat

A floating chat-prompt widget fixed to the bottom-right of the screen. Appears after delay milliseconds and auto-dismisses after autoDismiss ms (0 = never). Toggle visibility with v-model. Emits action when the CTA button is clicked.

Components

<XMarkModalChat />

A floating chat-prompt widget fixed to the bottom-right of the screen. Appears after delay milliseconds and auto-dismisses after autoDismiss ms (0 = never). Toggle visibility with v-model. Emits action when the CTA button is clicked.

<XMarkModalChat
  v-model="chatOpen"
  name="Alex from Support"
  message="Hi there! 👋 Have questions about our pricing? I'm here to help."
  avatar="/avatars/alex.jpg"
  :online="true"
  action-text="Start a conversation"
  :delay="4000"
  :auto-dismiss="0"
  @action="openIntercom"
  @dismiss="chatOpen = false"
/>

Props

PropTypeDefaultDescription
modelValueBooleanfalseVisibility (v-model)
avatarString''Avatar image URL
nameString'Support'Agent or bot name
messageStringDefault greetingChat message text
onlineBooleantrueShow green online indicator
actionTextString''CTA button label (hidden when empty)
autoDismissNumber0Auto-dismiss after N ms (0 = never)
delayNumber3000Delay before showing (ms)

Emits

EventDescription
update:modelValuev-model sync
actionCTA button clicked
dismissWidget dismissed

AI Context

category: Modal
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkModalChat
use-when: >
  Adding a floating chat prompt overlay to key conversion pages. Appears
  after a configurable delay to engage visitors without being immediately
  intrusive.
typical-page-section: Persistent overlay on pricing, demo, and key conversion pages.
Copyright © 2026