Customizing the Dify Chatbot Bubble Button
The Dify Chatbot Bubble Button can be customized through the following configuration options:Overriding Default Button Styles
You can override the default button style using CSS variables or thecontainerProps option. Apply these methods based on CSS specificity to achieve your desired customizations.
1.Modifying CSS Variables
The following CSS variables are supported for customization:2.Using containerProps
Set inline styles using the style attribute:
className attribute:
3. Passing inputs
There are four types of inputs supported:
text-input: Accepts any value. The input string will be truncated if its length exceeds the maximum allowed length.paragraph: Similar totext-input, it accepts any value and truncates the string if it’s longer than the maximum length.number: Accepts a number or a numerical string. If a string is provided, it will be converted to a number using theNumberfunction.options: Accepts any value, provided it matches one of the pre-configured options.
http://localhost/chatbot/{token}?name=H4sIAKUlmWYA%2FwWAIQ0AAACDsl7gLuiv2PQEUNAuqQUAAAA%3D
Edit this page
Help improve our documentation by contributing directly
Report an issue
Found an error or have suggestions? Let us know