Component for selecting supported networks in the Compound III protocol
NetworkSelector
component provides a user-friendly dropdown interface for selecting networks supported by the Compound III protocol. It displays network icons, names, and handles network switching.
Prop | Type | Description |
---|---|---|
provider | Provider | The Ethereum provider to use for network switching |
value | number | The currently selected chain ID |
onChange | (chainId: number) => void | Callback function called when a network is selected |
switchNetwork | boolean | Whether to automatically switch networks when selected (default: true) |
showTestnets | boolean | Whether to show testnet networks (default: false) |
className | string | Optional CSS class name to apply to the component |
disabled | boolean | Whether the selector is disabled (default: false) |
NetworkSelector
component includes the following features:
showTestnets
is enabledclassName
prop: