.social
or .social-icon
to any Materialize button along with the auth providers class and BAM!
Instant login buttons.
<a class="waves-effect waves-light btn social google">
<i class="fa fa-google"></i> Sign in with Google</a>
<a class="waves-effect waves-light btn-large social google">
<i class="fa fa-google"></i> Sign in with Google</a>
<div class="row">
<a class="waves-effect waves-light btn col s12 social google">
<i class="fa fa-google"></i> Sign in with Google</a>
</div>
<a class="waves-effect waves-light btn-floating social google">
<i class="fa fa-google"></i> Sign in with Google</a>
<a class="waves-effect waves-light btn-floating btn-large social google">
<i class="fa fa-google"></i> Sign in with Google</a>
<a class="waves-effect waves-light social-icon btn google">
<i class="fa fa-google"></i></a>
<a class="waves-effect waves-light social-icon btn-large google">
<i class="fa fa-google"></i></a>
<div class="fixed-action-btn horizontal click-to-toggle">
<a class="btn-floating btn-large red">
<i class="material-icons">menu</i>
</a>
<ul>
<li>
<a class="waves-effect waves-light btn-floating social google"><i class="fa fa-google"></i></a>
</li>
<li>
<a class="waves-effect waves-light btn-floating facebook"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a class="waves-effect waves-light btn-floating github"><i class="fa fa-github"></i></a>
</li>
</ul>
</div>
If you haven't done that already, include the latest Materialize CSS and Font Awesome in your project.
npm install --save materialize-social
bower install --save materialize-social
You have two options for enabling the social buttons in your project: vanilla CSS or source Less. For vanilla CSS, just include the materialize-social.css
file into your project.
For Less, copy the materialize-social.less
into your existing styles directory and import it into your base less file with @import "materialize-social.less";
. Recompile when ready.
See above for examples