Configuring Content
Squid Widget: Configuring Content Guide
This guide explains how to customize various content elements of the Squid Widget, including the logo, title headings, and animations.
Changing the Logo
You can set a custom logo for your widget using the mainLogoUrl
property:
Notes:
Recommended logo dimensions are 36px x 36px.
If this field is empty (
""
), the logo in the top left corner of the widget will be invisible.Ensure the image URL is accessible and loads quickly for the best user experience.
Customizing Title Headings
You can customize the text for various sections of the widget using the titles
property:
Available title customizations:
swap
: Main action button (default: "Swap")settings
: Settings page titlewallets
: Wallets selection page titletokens
: Token selection page titlechains
: Chain (network) selection page titlehistory
: Transaction history page titletransaction
: Transaction details page titledestination
: Label for destination address input
Note: If you set any of these strings to an empty value (""
), the corresponding title will be invisible.
Managing Animations
The Squid Widget includes custom Lottie animations by default. You can choose to hide these animations:
Set
hideAnimations
totrue
to disable all custom animations.Set
hideAnimations
tofalse
(default) to keep the animations enabled.
Best Practices
Consistency: Ensure that your custom content aligns with your brand and the overall user experience of your application.
Localization: Consider providing localized versions of titles if your application supports multiple languages.
Performance: If using a custom logo, optimize the image for web to ensure fast loading times.
Accessibility: When customizing text, maintain clear and descriptive labels to support all users, including those using screen readers.
Full Example
Here's an example that combines all of these content configurations:
Last updated