Build a deposit widget
Pre-select the vault token as the destination and lock it, so users only choose the source token and amount:disabledUI to pre-fill the destination without locking it. chains.from.allow restricts the source chains; chains.allow (without from or to) restricts both lists. See Configure Widget for all chain and token filters and Customize Widget for every disabledUI field, layout variants and theming.
Detect Composer routes in events
TheuseWidgetEvents hook emits execution events. A route uses Composer when one of its steps has an includedSteps entry with tool: "composer". Subscribe outside the component that renders LiFiWidget to avoid re-renders:
Try it live
Widget Playground
Test Composer flows in the LI.FI Widget

