dAppBooster
    Preparing search index...
    TokenDropdown: FC<Props> = ...

    A dropdown component that allows users to select a token.

    TokenDropdown component props.

    The currently selected token.

    The size of the token icon in the dropdown button.

    Callback function called when a token is selected.

    Whether to show a button to add a custom token.

    The current network id to filter tokens.

    List of networks to display in the dropdown.

    Placeholder text for the search input.

    Height of the virtualized tokens list.

    Height of each item in the tokens list.

    Whether to show the token balance in the list.

    Whether to show the top tokens section in the list.

    Additional props for the span element.

    <TokenDropdown
    currentToken={daiToken}
    onTokenSelect={(token) => setSelectedToken(token)}
    showAddTokenButton={true}
    showBalance={true}
    />