Can you please guide me about how to display facebook and google icon?

Can you please guide me about how to display facebook and google icon?

I am not able to see any icon in the ui..

@page "/"



<div id="wrapper">


    <SfCard>

        <CardHeader Title="Sign In"

                    SubTitle="Hey,Please select sign in options from below to continue"></CardHeader>

        <form id="external-account" asp-page="./ExternalLogin" method="post" class="form-horizontal">

            <div>



                    <div class="col-xs-12 col-sm-12 col-lg-12 col-md-12">

                        <SfButton CssClass="e-danger" IconCss="e-icons e-Google">Sign in with Google</SfButton>

                    </div>


                    <br />


               

                    <div>

                        <SfButton CssClass="e-info" IconCss="e-icons e-facebook">Sign in with Facebook</SfButton>

                        <SfButton IconCss="e-icons e-Google">Facebook</SfButton>

                    </div>


                    <br/>






            </div>

        </form>

    </SfCard>

</div>


<style>

    #wrapper {

        text-align: center;

        width: 500px;

        margin-top: 150px;

        margin-left: 350px;

    }



</style>


@code {





}



1 Reply

GK Gayathri KarunaiAnandam Syncfusion Team December 13, 2021 08:41 AM UTC

Hi Harshal, 

Thanks for contacting Syncfusion Support. 

We have checked your reported query. We would like to let you know that we can add external style reference to button by using the IconCss property. We have prepared a sample by using Facebook and Google icons in Button component. Please check the below code snippet. 

Index.html: 

    <link rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap4.css" rel="stylesheet" /> 


Index.razor: 

    <SfCard> 
 
        <CardHeader Title="Sign In" 
 
                    SubTitle="Hey,Please select sign in options from below to continue"></CardHeader> 
 
        <form id="external-account" asp-page="./ExternalLogin" method="post" class="form-horizontal"> 
 
            <div> 
 
                    <div class="col-xs-12 col-sm-12 col-lg-12 col-md-12"> 
 
                        <SfButton CssClass="e-danger" IconCss="fa fa-google">Sign in with Google</SfButton> 
 
                    </div> 
 
                    <br /> 
 
                    <div> 
 
                        <SfButton CssClass="e-info" IconCss="fa fa-facebook-official">Sign in with Facebook</SfButton> 
 
                        <SfButton IconCss="fa fa-facebook-official">Facebook</SfButton> 
 
                    </div> 
 
                    <br/> 
 
            </div> 
 
        </form> 
 
    </SfCard> 

For your convenience, please check the below sample link. 


To know more details, please check the below links. 


Please get back to us, if you need further assistance. 

Regards, 
Gayathri K 


Loader.
Up arrow icon