hadcn chat

ExpandableChat

The ExpandableChat expandable-chat.svelte component gives an easily installable component for quickly creating a chat support ui feature.

See the example on the popover below

API Reference

ExpandableChat

PropTypeDefaultDescription
position"bottom-right" | "bottom-left""bottom-right"Position of the chat widget on the screen
size"sm" | "md" | "lg" | "xl" | "full""md"Size of the chat window
iconSnippet-Custom icon for the chat toggle button
classstring-Additional CSS classes for the main container
childrenSnippet-Content of the chat window

ExpandableChatHeader

PropTypeDefaultDescription
classstring-Additional CSS classes for the header section

ExpandableChatBody

PropTypeDefaultDescription
classstring-Additional CSS classes for the body section

ExpandableChatFooter

PropTypeDefaultDescription
classstring-Additional CSS classes for the footer section

ExpandableChatToggle (internal component)

PropTypeDefaultDescription
iconSnippet-Custom icon for the toggle button
isOpenboolean-Current open/closed state of the chat window
toggleChat() => void-Function to toggle the chat window open/closed
classstring-Additional CSS classes for the toggle button