Dub Embed
Widget Customization
Learn how to customize the Dub widget
Dub Widget comes with a set of props that allow you to customize the widget looks and behavior.
Available props
The link public token.
The trigger for the widget. Available options are floating-button
, manual
.
The placement of the widget. Available options are bottom-right
,
bottom-left
, top-right
, top-left
, center
.
onOpen
The callback function that is called when the widget is opened.
onClose
The callback function that is called when the widget is closed.
onError
The callback function that is called when there is an error fetching the data.
onTokenExpired
The callback function that is called when the link public token expires.
containerStyles
The styles for the widget container.
popupStyles
The styles for the widget popup.
buttonStyles
The styles for the widget button.
Here is a simple example of how to customize the widget:
Was this page helpful?