@angular-cool/social-login-buttons
TypeScript icon, indicating that this package has built-in type declarations

13.1.0 • Public • Published

@angular-cool/social-login-buttons NPM version Downloads Total Downloads

Cool social login buttons for angular

Featured buttons:

  • Google
  • Facebook

Install

npm install --save @angular-cool/social-login-buttons

Setup

import { NgModule } from '@angular/core';
import { CoolSocialLoginButtonsModule } from '@angular-cool/social-login-buttons';

@NgModule({
    imports: [CoolSocialLoginButtonsModule]
})
export class MyAppModule {}

Google button

Usage

<cool-google-button color="dark" (click)="onGoogleLoginClicked()">
  Login with Google
</cool-google-button>

API

Inputs

  • [color]

    • Type: 'dark' | 'light'
    • Style of the button
  • [disabled]

    • Type: boolean
    • Whether the button is disabled

Outputs

  • (click)
    • Type: MouseEvent
    • Called when the button has been clicked

Facebook button

Usage

<cool-facebook-button color="dark" (click)="onFacebookLoginClicked()">
  Login with Facebook
</cool-facebook-button>

API

Inputs

  • [color]

    • Type: 'dark' | 'light'
    • Style of the button
  • [disabled]

    • Type: boolean
    • Whether the button is disabled

Outputs

  • (click)
    • Type: MouseEvent
    • Called when the button has been clicked

License

The MIT License (MIT)

Copyright (c) 2020 Hacklone https://github.com/Hacklone

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package Sidebar

Install

npm i @angular-cool/social-login-buttons

Weekly Downloads

112

Version

13.1.0

License

MIT

Unpacked Size

117 kB

Total Files

19

Last publish

Collaborators

  • hacklone