Customize your experience with our versatile variants
compact
, wide
, and drawer
. Variants allow customization of the exterior of the widget, like the side panel for quotes or drawer. There are also several subvariants - default
, split
, and custom
. They help to customize the interior look and feel as well as functionality.
variant
option in the configuration.
ref
to the widget.
Here is an example of controlling the drawer with ref
:
subvariant
option in the configuration.
wide
variant and want to have a chain sidebar instead of the compact chain selector, set enableChainSidebar
to true
in subvariantOptions
:
wide
variant is disabled by default.
subvariant: 'split'
, the subvariantOptions
configuration controls whether to show both “Swap” and “Bridge” tabs or a single interface.
split: 'bridge'
: Shows only bridge interface (no tabs)split: 'swap'
: Shows only swap interface (no tabs)